/* =============================================
   Ashviit IT Solutions – Custom Stylesheet
   ============================================= */

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

/* ---------- Variables ---------- */
:root {
  --primary:       #4f46e5;
  --primary-light: #6366f1;
  --primary-dark:  #3730a3;
  --accent:        #06b6d4;
  --dark:          #0f172a;
  --dark-2:        #1e293b;
  --text:          #334155;
  --text-light:    #64748b;
  --text-muted:    #94a3b8;
  --border:        #e2e8f0;
  --bg-light:      #f8fafc;
  --white:         #ffffff;
  --transition:    all 0.35s ease;
  --radius:        14px;
  --shadow-sm:     0 4px 16px rgba(79, 70, 229, 0.08);
  --shadow-md:     0 12px 40px rgba(79, 70, 229, 0.14);
  --shadow-lg:     0 24px 64px rgba(79, 70, 229, 0.18);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Offset fixed navbar when jumping to anchor links */
  scroll-padding-top: 82px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 8px;
  border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Text Selection ---------- */
::selection      { background: rgba(99,102,241,.2); color: var(--primary-dark); }
::-moz-selection { background: rgba(99,102,241,.2); color: var(--primary-dark); }

/* ---------- Focus Ring (Accessibility) ---------- */
:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Skip-to-content Link ---------- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: .5rem 1.2rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: .88rem;
  z-index: 9999;
  transition: top .2s ease;
}
.skip-to-content:focus { top: 0; }

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.10s; }
[data-reveal-delay="2"] { transition-delay: 0.20s; }
[data-reveal-delay="3"] { transition-delay: 0.30s; }
[data-reveal-delay="4"] { transition-delay: 0.40s; }

/* ---------- Section Layout ---------- */
.section { padding: 80px 0; }
.section-sm { padding: 52px 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 580px;
  line-height: 1.75;
}

.section-divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  margin: 0.6rem 0 1.2rem;
}
.section-divider.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white) !important;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
  box-shadow: 0 4px 20px rgba(79,70,229,0.3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
}
.btn-primary-custom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s ease;
  border-radius: inherit;
}
.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(79,70,229,0.38);
  color: var(--white) !important;
}
.btn-primary-custom:hover::after { background: rgba(255,255,255,0.06); }
.btn-primary-custom:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(79,70,229,0.3); }

/* Larger hero CTA */
.btn-hero-cta {
  padding: 0.9rem 2.25rem !important;
  font-size: 1rem !important;
  box-shadow: 0 6px 28px rgba(79,70,229,0.4) !important;
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 2rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,70,229,0.3);
}
.btn-outline-custom:active { transform: translateY(0); }

.btn-white-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--primary) !important;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 2rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  cursor: pointer;
}

.btn-white-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  color: var(--primary-dark) !important;
}
.btn-white-custom:active { transform: translateY(0); }

/* ============================================================
   NAVBAR
============================================================ */
#mainNavbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

#mainNavbar.scrolled {
  background: rgba(15, 23, 42, 0.96) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.navbar-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.brand-name span { color: var(--accent); }

.nav-link-custom {
  color: rgba(255,255,255,0.8) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 0.9rem !important;
  border-radius: 8px;
  transition: var(--transition) !important;
  position: relative;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: #fff !important;
  background: rgba(255,255,255,0.09);
}

/* Animated underline accent on active link */
.nav-link-custom::after {
  content: '';
  display: block;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  margin-top: 2px;
}
.nav-link-custom.active::after {
  transform: scaleX(1);
}

/* ============================================================
   SERVICES DROPDOWN
============================================================ */
/* Prevent Bootstrap from interfering with our dropdown-toggle colour */
.nav-link-custom.dropdown-toggle {
  cursor: pointer;
}
.nav-link-custom.dropdown-toggle::after {
  /* Reuse Bootstrap caret but style it to match */
  border-top-color: rgba(255,255,255,0.7);
  transition: transform 0.25s ease;
}
.nav-item.dropdown.show > .nav-link-custom.dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Dropdown menu panel */
.saas-dropdown {
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0.6rem 0.4rem;
  min-width: 260px;
  margin-top: 0.6rem !important;
}

/* Individual dropdown items */
.saas-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.saas-dropdown .dropdown-item i {
  width: 18px;
  text-align: center;
  color: var(--primary-light);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.saas-dropdown .dropdown-item:hover {
  background: rgba(99,102,241,0.12);
  color: #e2e8f0;
  padding-left: 1.3rem;
}
.saas-dropdown .dropdown-item:hover i {
  transform: scale(1.1);
  color: var(--accent);
}
.saas-dropdown .dropdown-item.active-page {
  background: rgba(99,102,241,0.18);
  color: #a5b4fc;
}

/* Divider inside dropdown */
.saas-dropdown .dropdown-divider {
  border-color: rgba(255,255,255,0.06);
  margin: 0.3rem 0.8rem;
}

/* Mobile: show dropdown inline (stacked) */
@media (max-width: 991.98px) {
  .saas-dropdown {
    background: rgba(255,255,255,0.04);
    border: none;
    border-radius: 10px;
    box-shadow: none;
    backdrop-filter: none;
    margin-top: 0 !important;
    padding: 0.25rem 0;
  }
  .saas-dropdown .dropdown-item {
    color: rgba(255,255,255,0.65);
    padding: 0.45rem 1.5rem;
  }
  .saas-dropdown .dropdown-item:hover { color: #fff; }
}

/* ============================================================
   HERO
============================================================ */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #060b17 0%, #0d1526 40%, #10082a 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle grid overlay for depth */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Animated gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(79,70,229,0.22) 0%, transparent 65%);
  top: -200px; right: -150px;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(6,182,212,0.16) 0%, transparent 65%);
  bottom: -100px; left: -100px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.orb-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 65%);
  top: 35%; left: 30%;
  animation: orbFloat 6s ease-in-out infinite 2s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33%  { transform: translate(20px, -20px); }
  66%  { transform: translate(-15px, 15px); }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(79,70,229,0.12);
  border: 1px solid rgba(99,102,241,0.4);
  color: #c7d2fe;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.75rem;
  box-shadow: 0 0 24px rgba(79,70,229,0.15);
}

.hero-badge .badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%  { opacity: 0.5; transform: scale(0.6); }
}

.hero-heading {
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.06;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.hero-heading .gradient-text {
  background: linear-gradient(100deg, #a5b4fc 0%, #38bdf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 4s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0%   { background-position: 0% center; }
  100% { background-position: 100% center; }
}

.hero-sub {
  color: #94a3b8;
  font-size: 1.15rem;
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 0;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-cta-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #475569;
  margin-top: 0.9rem;
  font-weight: 500;
}
.hero-cta-note i { color: #22c55e; font-size: 0.85rem; }

/* Stat pills */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.stat-pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 0.9rem 1.25rem;
  min-width: 115px;
  text-align: center;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.stat-pill:hover {
  border-color: rgba(99,102,241,0.4);
  background: rgba(79,70,229,0.08);
}

.stat-pill .num {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #f1f5f9, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-pill .label {
  font-size: 0.73rem;
  color: #475569;
  margin-top: 0.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Hero visual card */
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-card-main {
  background: linear-gradient(145deg, rgba(22,34,54,0.95), rgba(10,16,30,0.95));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,102,241,0.08) inset;
  position: relative;
  overflow: hidden;
}

.hero-card-main::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), rgba(6,182,212,0.4), transparent);
}

.code-block {
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  padding: 1.2rem;
  font-family: 'Consolas', monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #94a3b8;
  border: 1px solid rgba(255,255,255,0.05);
}

.code-block .c-key   { color: #a5b4fc; }
.code-block .c-str   { color: #34d399; }
.code-block .c-func  { color: #60a5fa; }
.code-block .c-num   { color: #f59e0b; }

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(30,41,59,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  z-index: 3;
}

.floating-badge .fb-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.fb-success  { background: rgba(34,197,94,0.2); color: #22c55e; }
.fb-warning  { background: rgba(245,158,11,0.2); color: #f59e0b; }
.fb-info     { background: rgba(6,182,212,0.2);  color: #06b6d4; }

.badge-pos-1 { bottom: -20px; left: -30px; animation: floatBadge 3s ease-in-out infinite; }
.badge-pos-2 { top: -20px;   right: -20px; animation: floatBadge 4s ease-in-out infinite 1s; }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ============================================================
   ABOUT
============================================================ */
#about { background: var(--bg-light); }

.about-img-block {
  position: relative;
}

.about-img-box {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 20px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(99,102,241,0.15);
  box-shadow: var(--shadow-lg);
}

.about-img-icon {
  font-size: 8rem;
  color: rgba(99,102,241,0.3);
}

.exp-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  min-width: 130px;
}

.exp-badge .exp-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.exp-badge .exp-label {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 0.2rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.about-feature:hover {
  border-color: rgba(79,70,229,0.3);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.af-icon {
  width: 44px; height: 44px;
  background: rgba(79,70,229,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.about-feature:hover .af-icon {
  background: var(--primary);
  color: #fff;
}

.af-text h6 {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.af-text p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   SERVICES
============================================================ */
#services { background: var(--white); }

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,70,229,0.03), rgba(6,182,212,0.03));
  opacity: 0;
  transition: var(--transition);
  border-radius: 20px;
}

.service-card:hover {
  border-color: rgba(79,70,229,0.25);
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(79,70,229,0.14);
}

.service-card:hover::after { opacity: 1; }

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.s-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}

.s-icon-1 { background: rgba(99,102,241,0.1); color: #6366f1; }
.s-icon-2 { background: rgba(6,182,212,0.1);  color: #06b6d4; }
.s-icon-3 { background: rgba(245,158,11,0.1); color: #f59e0b; }
.s-icon-4 { background: rgba(239,68,68,0.1);  color: #ef4444; }

.service-card:hover .s-icon-1 { background: #6366f1; color: #fff; }
.service-card:hover .s-icon-2 { background: #06b6d4; color: #fff; }
.service-card:hover .s-icon-3 { background: #f59e0b; color: #fff; }
.service-card:hover .s-icon-4 { background: #ef4444; color: #fff; }

.s-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(79,70,229,0.06);
  line-height: 1;
  font-family: 'Segoe UI', sans-serif;
}

.service-card h5 {
  font-weight: 800;
  color: var(--dark);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.s-tag {
  background: var(--bg-light);
  color: var(--text-light);
  border-radius: 6px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 1.5rem;
  transition: var(--transition);
}

.service-link i { transition: transform 0.25s ease; }
.service-link:hover { gap: 0.7rem; color: var(--primary-dark); }
.service-link:hover i { transform: translateX(3px); }

/* ============================================================
   WHY CHOOSE US
============================================================ */
#why-us { background: var(--bg-light); }

.why-grid { display: grid; gap: 1.5rem; }

.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.why-card:hover {
  border-color: rgba(79,70,229,0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.why-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(79,70,229,0.25);
}

.why-card h6 {
  font-weight: 800;
  color: var(--dark);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.why-card p {
  color: var(--text-light);
  font-size: 0.87rem;
  margin: 0;
  line-height: 1.6;
}

.why-visual {
  position: relative;
}

.why-main-card {
  background: linear-gradient(135deg, var(--primary), #4338ca);
  border-radius: 24px;
  padding: 2rem 2rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.why-main-card h3 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.why-main-card p { opacity: 0.85; font-size: 0.95rem; }

.why-stat-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.why-stat {
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  flex: 1;
  min-width: 90px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
}

.why-stat .ws-num {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.why-stat .ws-label {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-top: 0.2rem;
}

.why-floating {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--border);
  min-width: 200px;
}

.wf-icon {
  width: 40px; height: 40px;
  background: rgba(34,197,94,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  font-size: 1.1rem;
}

.wf-text .wf-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 0.1rem;
}

.wf-text .wf-sub {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ============================================================
   CTA SECTION
============================================================ */
#cta {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1040 50%, #0a1628 100%);
  position: relative;
  overflow: hidden;
}

.cta-orb-1 {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(79,70,229,0.2) 0%, transparent 65%);
  top: -200px; left: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.cta-orb-2 {
  position: absolute;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 65%);
  bottom: -120px; right: -80px;
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 68px 0;
}

.cta-inner h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.2;
}

.cta-inner h2 .cta-highlight {
  background: linear-gradient(90deg, #a5b4fc, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-inner p {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 520px;
  margin: 1rem auto 2rem;
}

.cta-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.trust-item i { color: #22c55e; font-size: 1rem; }

/* ============================================================
   FOOTER
============================================================ */
#footer {
  background: #060c18;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 0;
}

.footer-brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-brand-name span { color: var(--accent); }

.footer-tagline {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 270px;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fs-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 0.88rem;
  transition: var(--transition);
}

.fs-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 18px rgba(79,70,229,0.35);
}

.footer-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
  color: #475569;
  font-size: 0.87rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover { color: #a5b4fc; padding-left: 5px; }
.footer-links a i { transition: transform 0.2s ease; }
.footer-links a:hover i { transform: translateX(2px); }

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
  color: #475569;
  font-size: 0.87rem;
}

.footer-contact-item i {
  color: var(--primary-light);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a { color: #475569; }
.footer-contact-item a:hover { color: #a5b4fc; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 2rem;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom span,
.footer-bottom a {
  font-size: 0.82rem;
  color: #334155;
}

.footer-bottom a:hover { color: #a5b4fc; }

/* ============================================================
   RESPONSIVE
============================================================ */
/* ============================================================
   BACK-TO-TOP BUTTON
============================================================ */
#backToTop {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(79,70,229,0.35);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.25s ease;
  pointer-events: none;
}
#backToTop.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#backToTop:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 32px rgba(79,70,229,0.45);
}
#backToTop:active { transform: translateY(0) scale(0.97); }

/* ============================================================
   BUTTON RIPPLE
============================================================ */
.ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: ripple-anim 0.55s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ============================================================
   CARD TILT UTILITY (via JS data-tilt)
============================================================ */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 991.98px) {
  .floating-badge { display: none; }
  .exp-badge { position: static; display: inline-block; margin-top: 1rem; }
  .why-floating { display: none; }
  .hero-stats { justify-content: center; }
  html { scroll-padding-top: 70px; }
}

@media (max-width: 767.98px) {
  .section { padding: 56px 0; }
  .section-title { letter-spacing: -0.3px; }
  .hero-cta-group { justify-content: center; }
  .hero-cta-note { justify-content: center; text-align: center; }
  .hero-content { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-heading { letter-spacing: -1.5px; }
  .hero-stats { justify-content: center; }
  .why-main-card { padding: 2rem 1.5rem; }
  .cta-trust { gap: 1.2rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  /* Larger tap targets on mobile */
  .nav-link-custom { padding: 0.6rem 1rem !important; }
  .btn-primary-custom,
  .btn-outline-custom,
  .btn-white-custom { min-height: 48px; }
  /* Improve readability */
  body { font-size: 15px; line-height: 1.78; }
}

@media (max-width: 575.98px) {
  .stat-pill { min-width: 100px; }
  .why-stat-row { flex-direction: column; }
  .why-stat { min-width: auto; }
  /* Full-width buttons on very small screens */
  .hero-cta-group .btn-primary-custom,
  .hero-cta-group .btn-outline-custom { width: 100%; justify-content: center; }
  #backToTop { bottom: 1.2rem; right: 1.2rem; }
  /* Tighter section padding */
  .section { padding: 44px 0; }
}

/* =============================================
   SAAS ENHANCEMENTS
   Trusted Ticker · Tech Badges · Glass Cards
   Bento Grid · Glow Hovers · Mesh Sections
   ============================================= */

/* ---------- SaaS CSS variables ---------- */
:root {
  --glow-primary: 0 0 0 1px rgba(99,102,241,.18),  0 8px 32px rgba(79,70,229,.22),  0 0 60px rgba(79,70,229,.07);
  --glow-accent:  0 0 0 1px rgba(6,182,212,.18),   0 8px 32px rgba(6,182,212,.22),  0 0 60px rgba(6,182,212,.07);
  --radius-xl:    28px;
}

/* ---------- Dark mesh gradient background ---------- */
.section-dark {
  background: linear-gradient(135deg, #08101f 0%, #0f172a 55%, #130e2a 100%);
  color: #f1f5f9;
  position: relative;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%,  rgba(99,102,241,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 100% 100%, rgba(6,182,212,.09) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.section-dark > .container { position: relative; z-index: 1; }

/* ---------- Trusted-By / Tech Ticker ---------- */
.trusted-section {
  padding: 36px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.trusted-label {
  text-align: center;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.ticker-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem 2.2rem;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .25s;
  cursor: default;
}
.ticker-item:hover { color: var(--primary); }
.ticker-item i { font-size: 1.25rem; flex-shrink: 0; }

.ticker-sep {
  display: inline-flex;
  align-items: center;
  padding: 0 .3rem;
  color: var(--border);
  font-size: 1.1rem;
  line-height: 1;
}

/* ---------- Tech Stack section ---------- */
.techstack-section {
  background: linear-gradient(to bottom, var(--bg-light), var(--white));
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: .7rem 1.35rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: default;
}
.tech-badge i { font-size: 1.2rem; transition: transform .25s ease; }
.tech-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--glow-primary);
}
.tech-badge:hover i { transform: scale(1.15) rotate(-6deg); }

/* Brand icon colour classes */
.ti-react   { color: #61dafb; }
.ti-angular { color: #dd1b16; }
.ti-vue     { color: #42b883; }
.ti-node    { color: #68a063; }
.ti-python  { color: #3776ab; }
.ti-aws     { color: #ff9900; }
.ti-docker  { color: #2496ed; }
.ti-android { color: #3ddc84; }
.ti-apple   { color: #555;    }
.ti-figma   { color: #f24e1e; }
.ti-js      { color: #f7df1e; }
.ti-git     { color: #f05032; }
.ti-github  { color: #333;    }
.ti-html    { color: #e34f26; }
.ti-css     { color: #264de4; }

/* ---------- Glass card utility ---------- */
.glass-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.glass-card-dark {
  background: rgba(15,23,42,.7);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ---------- Bento Feature Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.bento-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
  border-radius: 3px 3px 0 0;
}
.bento-card:hover::before { transform: scaleX(1); }
.bento-card:hover {
  border-color: rgba(99,102,241,.25);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.bento-wide { grid-column: span 2; }

.bento-card .bc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(99,102,241,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
  transition: var(--transition);
}
.bento-card:hover .bc-icon { background: var(--primary); color: #fff; transform: scale(1.05); }

.bento-card h5 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .45rem;
}
.bento-card p {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* ---------- Enhanced service-card bottom glow stripe ---------- */
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 1.5rem; right: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform .4s ease;
  border-radius: 2px;
}
.service-card:hover::before { transform: scaleX(1); }

/* ---------- Stats banner (gradient band) ---------- */
.stats-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 50%, var(--accent) 100%);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.sb-stat .sb-num {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}
.sb-stat .sb-label {
  font-size: .76rem;
  opacity: .78;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: .3rem;
}
.sb-divider {
  width: 1px;
  background: rgba(255,255,255,.2);
  align-self: stretch;
  margin: 0 .5rem;
}

/* ---------- AOS pointer-events fix ---------- */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ---------- Responsive SaaS additions ---------- */
@media (max-width: 991.98px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
}
@media (max-width: 767.98px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .ticker-item { padding: .6rem 1.4rem; }
  .stats-banner { padding: 2rem 1.5rem; }
}
@media (max-width: 575.98px) {
  .tech-grid { gap: .55rem; }
  .tech-badge { padding: .5rem .9rem; font-size: .78rem; }
  .sb-stat .sb-num { font-size: 2rem; }
}
