/* =====================================================
   MySGOC / MyMooBan — 2026 Design System
   ===================================================== */

/* --- 0. Hero Animations (Immediate) --- */
/* For above-the-fold elements so they don't delay wait for WOW.js */
.hero-immediate-left {
  animation-name: fadeInLeft;
  animation-duration: 1s;
  animation-fill-mode: both;
}
.hero-immediate-right {
  animation-name: fadeInRight;
  animation-duration: 1s;
  animation-delay: 0.1s;
  animation-fill-mode: both;
}

/* --- 1. Design Tokens --- */
:root {
  /* Brand Colors */
  --brand-900: #0a0f1e;
  --brand-800: #0f172a;
  --brand-700: #1e293b;
  --brand-600: #334155;
  --brand-500: #2563eb;
  --brand-400: #3b82f6;
  --brand-300: #60a5fa;
  --brand-200: #bfdbfe;
  --brand-100: #eff6ff;

  /* Accent */
  --accent-teal: #0ea5e9;
  --accent-purple: #6366f1;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;

  /* Neutrals */
  --neutral-50:  #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;

  /* Gradients */
  --grad-brand:       linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
  --grad-hero:        linear-gradient(135deg, #0a0f1e 0%, #0f2044 50%, #1a1260 100%);
  --grad-teal:        linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  --grad-card:        linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  --grad-footer:      linear-gradient(135deg, #0a0f1e 0%, #0d1b3e 100%);

  /* Glass */
  --glass-bg:         rgba(255, 255, 255, 0.08);
  --glass-border:     rgba(255, 255, 255, 0.15);
  --glass-bg-light:   rgba(255, 255, 255, 0.65);
  --glass-border-light: rgba(255, 255, 255, 0.5);

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.2), 0 8px 20px rgba(0,0,0,0.1);
  --shadow-brand: 0 8px 30px rgba(37,99,235,0.3);
  --shadow-glow:  0 0 40px rgba(37,99,235,0.2);

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Transitions */
  --transition-fast:   all 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-base:   all 0.35s cubic-bezier(0.4,0,0.2,1);
  --transition-slow:   all 0.6s cubic-bezier(0.4,0,0.2,1);

  /* Typography */
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body:    'Inter', 'DM Sans', sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Bootstrap overrides */
  --bs-primary:    #2563eb;
  --bs-secondary:  #6366f1;
  --bs-dark:       #0f172a;
  --bs-light:      #f1f5f9;
  --bs-body-color: #334155;
}

/* --- 2. Base Reset & Typography --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--neutral-700);
  background: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.2;
}

a { color: var(--brand-500); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--brand-400); }

/* --- 3. Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--grad-brand);
  z-index: 99999;
  transition: width 0.1s linear;
}

/* --- 4. Page Loader / Spinner --- */
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
  background: var(--brand-900);
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

#spinner .spinner-border {
  width: 3rem; height: 3rem;
  border-color: var(--brand-500);
  border-right-color: transparent;
}

/* --- 5. Back to Top --- */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: var(--grad-brand);
  color: #fff !important;
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-brand);
  transition: var(--transition-base);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
}

.back-to-top.show,
.back-to-top.active {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(37,99,235,0.45);
}

/* --- 6. Button System --- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  border: none;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff !important;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(37,99,235,0.4);
  color: #fff !important;
}

.btn-outline-primary {
  border: 2px solid var(--brand-500);
  color: var(--brand-500) !important;
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--brand-500);
  color: #fff !important;
  transform: translateY(-2px);
}

.btn-light {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-light:hover {
  background: rgba(255,255,255,0.25);
  color: #fff !important;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--neutral-900);
  color: #fff !important;
}

.btn-dark:hover {
  background: var(--neutral-700);
  color: #fff !important;
}

.btn-square { width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; font-weight: normal; }
.btn-sm-square { width: 34px; height: 34px; padding: 0; display: flex; align-items: center; justify-content: center; font-weight: normal; }
.btn-md-square { width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; font-weight: normal; }
.btn-lg-square { width: 56px; height: 56px; padding: 0; display: flex; align-items: center; justify-content: center; font-weight: normal; }
.btn-xl-square { width: 66px; height: 66px; padding: 0; display: flex; align-items: center; justify-content: center; font-weight: normal; }

/* --- 7. Navbar --- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255, 0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: var(--transition-base);
  padding: 0;
}

.nav-bar.scrolled {
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(25px) saturate(180%);
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.nav-bar .navbar {
  padding: 14px 0;
}

.nav-bar .navbar-brand {
  padding: 0;
}

.nav-bar .navbar-brand img {
  height: 46px;
  width: auto;
  transition: var(--transition-base);
}

/* Nav links */
.navbar-nav .nav-item {
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.navbar-nav .nav-link,
.navbar-nav .nav-item.nav-link {
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--neutral-700) !important;
  padding: 8px 10px !important;
  border-radius: var(--radius-full);
  position: relative;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-bar.scrolled .navbar-nav .nav-link,
.nav-bar.scrolled .navbar-nav .nav-item.nav-link {
  color: rgba(255,255,255,0.85) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-item.nav-link.active {
  color: var(--brand-500) !important;
  background: rgba(37,99,235,0.08);
}

.nav-bar.scrolled .navbar-nav .nav-link:hover,
.nav-bar.scrolled .navbar-nav .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.12);
}

/* Dropdown */
.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  vertical-align: middle;
  margin-left: 4px;
  font-size: 12px;
}

.navbar .dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  margin-top: 8px;
  min-width: 180px;
  transform-origin: top center;
  animation: dropdownIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.navbar .dropdown-menu .dropdown-item {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  transition: var(--transition-fast);
}

.navbar .dropdown-menu .dropdown-item:hover {
  background: rgba(37,99,235,0.3);
  color: #fff;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-500);
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-bar.scrolled .lang-switcher {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}

.lang-switcher:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
}

.lang-switcher .dropdown-menu {
  right: 0; left: auto;
  min-width: 130px;
}

/* Mobile navbar */
@media (max-width: 991px) {
  .navbar .navbar-collapse {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--brand-900);
    padding: 80px 24px 40px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
  }

  .navbar .navbar-collapse.show {
    right: 0;
  }

  .navbar .navbar-nav {
    flex-direction: column;
    gap: 4px;
    background: transparent;
    width: 100%;
  }

  .navbar-nav .nav-link,
  .navbar-nav .nav-item.nav-link {
    color: rgba(255,255,255,0.85) !important;
    padding: 12px 16px !important;
    width: 100%;
  }

  .navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(37,99,235,0.3);
  }

  .navbar .dropdown-menu {
    position: static;
    background: rgba(255,255,255,0.05);
    box-shadow: none;
    border-radius: var(--radius-md);
    margin: 4px 0;
    animation: none;
  }

  .navbar-toggler {
    border: none;
    background: transparent;
    color: var(--neutral-700);
    font-size: 1.4rem;
    padding: 4px 8px;
    z-index: 99999;
    position: relative;
  }

  .nav-bar.scrolled .navbar-toggler {
    color: #fff;
  }

  /* Overlay when mobile menu open */
  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
  }

  .mobile-overlay.show {
    display: block;
  }
}

/* --- 8. Section Utilities --- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--neutral-900);
  line-height: 1.15;
}

.section-title .highlight {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--neutral-500);
  max-width: 600px;
  margin: 0 auto;
}

/* --- 9. Hero Section --- */
.site-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-mesh::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.35) 0%, transparent 70%);
  top: -200px; left: -150px;
  animation: meshPulse 8s ease-in-out infinite;
}

.hero-mesh::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation: meshPulse 10s ease-in-out infinite reverse;
}

.hero-mesh-3 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.2) 0%, transparent 70%);
  top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  animation: meshPulse 12s ease-in-out infinite 2s;
}

@keyframes meshPulse {
  0%, 100% { transform: scale(1) translate(0,0); }
  33% { transform: scale(1.15) translate(20px, -20px); }
  66% { transform: scale(0.9) translate(-15px, 15px); }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 80px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.9);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-headline .grad-text {
  background: linear-gradient(135deg, #60a5fa, #818cf8, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-img-wrap {
  position: relative;
  z-index: 10;
}

.hero-img-wrap img {
  filter: drop-shadow(0 30px 60px rgba(37,99,235,0.4));
  animation: heroFloat 5s ease-in-out infinite;
}

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

/* Hero slide dots */
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.hero-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  padding: 0;
}

.hero-dot.active {
  width: 28px;
  background: #fff;
}

/* Wave divider */
.wave-divider {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* --- 10. Breadcrumb Header --- */
.bg-breadcrumb {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  padding: 80px 0;
  text-align: center;
}

.bg-breadcrumb::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.3) 0%, transparent 70%);
  top: -200px; left: -100px;
}

.bg-breadcrumb::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
  bottom: -100px; right: -50px;
}

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

.bg-breadcrumb h4, .bg-breadcrumb h1 {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.bg-breadcrumb .breadcrumb {
  justify-content: center;
  background: none;
  padding: 0;
  margin-top: 12px;
}

.bg-breadcrumb .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
}

.bg-breadcrumb .breadcrumb-item a:hover {
  color: #fff;
}

.bg-breadcrumb .breadcrumb-item.active {
  color: var(--brand-300);
  font-size: var(--text-sm);
}

.bg-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.4);
}

/* --- 11. Feature Cards (Bento-style) --- */
.feature {
  background: var(--neutral-50);
  padding: 80px 0;
}

.feature .feature-item {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  padding: 32px;
  transition: var(--transition-base);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature .feature-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  opacity: 0;
  transition: var(--transition-base);
  border-radius: var(--radius-lg);
}

.feature .feature-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.feature .feature-item:hover::before {
  opacity: 1;
}

.feature .feature-item > * {
  position: relative;
  z-index: 2;
}

.feature .feature-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(99,102,241,0.12));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition-base);
}

.feature .feature-icon i {
  font-size: 1.6rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition-base);
}

.feature .feature-item:hover .feature-icon {
  background: rgba(255,255,255,0.2);
}

.feature .feature-item:hover .feature-icon i {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

.feature .feature-item h4 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 12px;
  transition: var(--transition-base);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature .feature-item p {
  color: var(--neutral-500);
  font-size: var(--text-sm);
  line-height: 1.7;
  transition: var(--transition-base);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.feature .feature-item:hover h4,
.feature .feature-item:hover p {
  color: rgba(255,255,255,0.9);
}

.feature .feature-item a.btn {
  transition: var(--transition-base);
}

.feature .feature-item:hover a.btn {
  background: rgba(255,255,255,0.2);
  color: #fff !important;
  backdrop-filter: blur(10px);
}

/* --- 11a. Solution/Feature Card with Better Hover --- */
.bg-white.p-0.shadow-sm.border.border-light.position-relative.transition-hover.overflow-hidden.rounded-5.h-100.d-flex.flex-column {
  transition: var(--transition-base);
}

.bg-white.p-0.shadow-sm.border.border-light.position-relative.transition-hover.overflow-hidden.rounded-5.h-100.d-flex.flex-column:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.transition-hover {
  transition: var(--transition-base);
}

.transition-hover:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-xl) !important;
}

.hover-lift {
  transition: var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}

/* --- 12. Service Cards --- */
.service {
  background: #fff;
  padding: 80px 0;
}

.service .service-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  transition: var(--transition-base);
  background: #fff;
}

.service .service-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service .service-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.service .service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.service .service-item:hover .service-img img {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

.service .service-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,30,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-base);
}

.service .service-item:hover .service-img::after {
  opacity: 1;
}

.service .service-img .service-icon {
  position: absolute;
  bottom: 16px; right: 16px;
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  z-index: 9;
  transition: var(--transition-base);
}

.service .service-img .service-icon i {
  color: #fff;
  font-size: 1.2rem;
}

.service .service-content {
  padding: 20px 24px 24px;
  background: #fff;
}

.service .service-content .h4,
.service .service-content a.h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 10px;
  display: block;
  transition: var(--transition-fast);
}

.service .service-content a.h4:hover {
  color: var(--brand-500);
}

.service .service-content p {
  color: var(--neutral-500);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* --- 13. About Section --- */
.about {
  background: var(--neutral-50);
}

.about-item-content {
  border-radius: var(--radius-lg);
}

.counter-item {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-200);
  padding: 24px;
  transition: var(--transition-base);
}

.counter-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-200);
}

.counter-counting span.text-primary {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- 14. FAQ / Solutions --- */
.faq-section {
  background: var(--neutral-50);
}

.faq-section .accordion-item {
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md) !important;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
}

.faq-section .accordion-button {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--neutral-800);
  background: #fff;
  padding: 18px 20px;
  border-radius: var(--radius-md) !important;
  box-shadow: none;
}

.faq-section .accordion-button:not(.collapsed) {
  color: var(--brand-500);
  background: rgba(37,99,235,0.05);
  box-shadow: none;
}

.faq-section .accordion-button::after {
  filter: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232563eb'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-section .accordion-body {
  color: var(--neutral-600);
  font-size: var(--text-sm);
  line-height: 1.8;
  padding: 16px 20px 20px;
}

.faq-section-custom-bg {
  background-color: var(--neutral-50) !important;
}

/* --- 15. Blog / News Cards --- */
.blog {
  background: #fff;
}

.blog .blog-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  transition: var(--transition-base);
  background: #fff;
}

.blog .blog-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.blog .blog-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.blog .blog-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.blog .blog-item:hover .blog-img img {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

.blog .blog-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,30,0.55) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-base);
}

.blog .blog-item:hover .blog-img::after { opacity: 1; }

.blog .blog-img .blog-categiry {
  position: absolute;
  bottom: 12px; left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--grad-brand);
  color: #fff;
  z-index: 9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog .blog-content {
  padding: 20px 24px 24px;
  background: #fff;
}

.blog .blog-content .blog-date {
  font-size: var(--text-xs);
  color: var(--neutral-400);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.blog .blog-content .blog-date i {
  color: var(--brand-400);
}

.blog .blog-content a.h4 {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 10px;
  line-height: 1.4;
  transition: var(--transition-fast);
}

.blog .blog-content a.h4:hover,
.blog .blog-content a.h4:focus { color: var(--brand-500); }

.blog .blog-content p, .blog .blog-content div.l-2-line {
  color: var(--neutral-500);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.blog .blog-content .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-500);
  margin-top: 12px;
  transition: var(--transition-fast);
}

.blog .blog-content .read-more:hover {
  gap: 10px;
  color: var(--brand-400);
}

/* --- 16. Team Cards --- */
.team {
  background: var(--neutral-50);
}

.team .team-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  background: #fff;
  transition: var(--transition-base);
}

.team .team-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.team .team-img {
  position: relative;
  overflow: hidden;
  height: 260px;
}

.team .team-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.team .team-item:hover .team-img img {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

.team .team-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,30,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-base);
}

.team .team-item:hover .team-img::after { opacity: 1; }

.team .team-img .team-icon {
  position: absolute;
  bottom: 16px; right: 16px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  z-index: 9;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-base);
}

.team .team-item:hover .team-img .team-icon {
  opacity: 1;
  transform: translateY(0);
}

.team .team-img .team-icon a {
  width: 34px; height: 34px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff !important;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.team .team-img .team-icon a:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
}

.team .team-title {
  padding: 20px;
  background: #fff;
}

.team .team-title h5 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--neutral-900) !important;
  margin-bottom: 4px;
}

.team .team-title small {
  color: var(--neutral-500);
  font-size: var(--text-xs);
}

.team .team-title p.btn {
  color: var(--brand-500) !important;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0;
  margin: 0;
}

/* --- 17. Contact --- */
.contact {
  background: var(--neutral-50);
}

.contact-add-item {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition-base);
  height: 100%;
}

.contact-add-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-200);
}

.contact-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(99,102,241,0.1));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.3rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-add-item h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-add-item p {
  font-size: var(--text-sm);
  color: var(--neutral-500);
  margin: 0;
}

/* --- 18. Footer --- */
.footer {
  background: var(--grad-footer);
  padding: 72px 0 40px;
}

.footer .footer-item {
  display: flex;
  flex-direction: column;
}

.footer .footer-item h4 {
  color: #fff;
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.footer .footer-item h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.footer .footer-item h3 {
  color: #fff;
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 12px;
}

.footer .footer-item p {
  color: rgba(255,255,255,0.55);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.footer .footer-item a {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  line-height: 2.2;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.footer .footer-item a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer .footer-item a i.fa-angle-right {
  font-size: 12px;
}

.footer .footer-item .footer-btn {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.footer .footer-item .footer-btn a {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7) !important;
   font-size: 28px;
  padding: 0;
  line-height: 1;
  transition: var(--transition-fast);
}

.footer .footer-item .footer-btn a:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff !important;
  transform: translateY(-3px);
  padding-left: 0;
}

.copyright {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}

.copyright span, .copyright a { color: rgba(255,255,255,0.5); font-size: var(--text-sm); }
.copyright a:hover { color: #fff; }
.copyright a.border-bottom { border-color: rgba(255,255,255,0.3) !important; }

/* --- 19. Pagination --- */
.pagination {
  gap: 4px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.pagination .page-link {
  border: 1px solid var(--neutral-200);
  color: var(--neutral-600);
  border-radius: var(--radius-sm);
  margin: 4px 2px;
  padding: 10px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: var(--transition-fast);
  background: #fff;
}

.pagination .page-link:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
}

.pagination .page-item.active .page-link {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.pagination .page-item.disabled .page-link {
  color: var(--neutral-300);
  background: var(--neutral-50);
}

/* --- 20. Testimonials --- */
.testimonial-carousel .owl-stage-outer { margin-top: 58px; }
.testimonial .owl-nav .owl-prev,
.testimonial .owl-nav .owl-next {
  position: absolute;
  top: -58px;
  background: var(--grad-brand);
  color: #fff;
  padding: 5px 28px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-brand);
}
.testimonial .owl-nav .owl-prev { left: 0; }
.testimonial .owl-nav .owl-next { right: 0; }
.testimonial .owl-nav .owl-prev:hover,
.testimonial .owl-nav .owl-next:hover { opacity: 0.85; }

/* --- 21. SG Company / Microsite Cards --- */
.sg-company-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  background: #fff;
  transition: var(--transition-base);
}

.sg-company-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

/* --- 22. Utility Text Truncation --- */
.l-1-line {
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.l-2-line {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.6;
  min-height: calc(1.6em * 2);
}

.l-3-line {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.6;
  min-height: calc(1.6em * 3);
}

/* --- 23. Entrance Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* WOW.js compatibility */
.wow { opacity: 0; }
.wow.animated { opacity: 1; }

/* --- 24. Misc / Enlarge --- */
.enlarge {
  transition: var(--transition-base);
}

.enlarge:hover {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

/* --- 24a. Hover Zoom & Transitions --- */
.hover-zoom {
  transition: transform var(--transition-slow);
}

.hover-zoom:hover {
  transform: translateY(-8px) !important;
  filter: brightness(1.08) drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.transition-transform {
  transition: transform var(--transition-base);
}

.transition-base {
  transition: var(--transition-base);
}

.transition-fast {
  transition: var(--transition-fast);
}

.group:hover .group-hover-visible {
  opacity: 1;
  visibility: visible;
}

.group:hover .group-hover-text {
  color: rgba(255,255,255,0.95);
}

/* --- 25. Topbar (kept for compatibility) --- */
.topbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  vertical-align: middle;
  margin-left: 8px;
  color: var(--brand-500);
}

.topbar .dropdown .dropdown-menu {
  background: #fff;
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 8px;
}

.topbar .dropdown .dropdown-menu a:hover {
  background: var(--brand-500);
  color: #fff;
  border-radius: var(--radius-sm);
}

/* --- 26. About page specific --- */
.about-section-block {
  padding: 72px 0;
}

.about-section-block:nth-child(even) {
  background: #fff;
}

.about-section-block:nth-child(odd) {
  background: var(--neutral-50);
}

.about-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-200);
  padding: 40px;
  height: 100%;
  transition: var(--transition-base);
}

.about-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-200);
}

/* Fix CEO image scale on larger desktops */
@media (min-width: 1200px) {
  .about .col-xl-6:last-child {
    max-width: 45%;
    margin-left: auto;
  }
}

.about-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.about-card p {
  color: var(--neutral-500);
  line-height: 1.8;
}

/* CEO quote style */
.ceo-quote {
  background: var(--grad-brand);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ceo-quote::before {
  content: '\201C';
  position: absolute;
  top: -20px; left: 20px;
  font-size: 160px;
  font-family: Georgia, serif;
  color: rgba(255,255,255,0.1);
  line-height: 1;
}

/* --- 27. Digital Tool / Solution / Feature list page common --- */
.digital-tool-item, .solution-item {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  padding: 28px;
  transition: var(--transition-base);
  height: 100%;
}

.digital-tool-item:hover, .solution-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

/* --- 28. Inner Pages (About / Listing) --- */
.bg-breadcrumb {
  background: var(--brand-900);
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
  padding: 60px 0 40px 0;
  position: relative;
  overflow: hidden;
}

.bg-breadcrumb::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  opacity: 0.3;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.4);
}

.breadcrumb-item a {
  color: var(--neutral-300);
  text-decoration: none;
  transition: var(--transition-base);
}

.breadcrumb-item a:hover {
  color: #fff;
}

.about-section-block {
  padding: 80px 0;
  background: #fff;
}
.about-section-block:nth-child(even) {
  background: var(--neutral-50);
}

/* --- 29. Responsive helpers --- */
@media (max-width: 991px) {
  .site-hero { padding-top: 140px !important; min-height: auto; }
  .hero-content { padding: 40px 0 80px; }
  .hero-headline { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-img-wrap { margin-top: 40px; }
  .about-card { padding: 30px; }
  .counter-item { padding: 15px; }
  .feature .feature-item, .service .service-item, .blog .blog-item {
    margin-left: 0;
    margin-right: 0;
    padding: 24px;
  }
  .back-to-top { right: 20px; bottom: 20px; width: 44px; height: 44px; }
}

@media (max-width: 767px) {
  .hero-headline { font-size: 2.2rem; }
  .section-title { font-size: 1.75rem; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .bg-breadcrumb { padding: 50px 0; }
  .section-badge { font-size: 0.7rem; padding: 4px 12px; }
}

/* --- 7. Navbar Logo Swap --- */
.nav-bar .logo-scrolled {
  display: none !important;
}

.nav-bar.scrolled .logo-default {
  display: none !important;
}

.nav-bar.scrolled .logo-scrolled {
  display: block !important;
}

/* ... existing styles ... */

/* --- 30. Slogan Section Styling (Dynamic Flex-Grid) --- */
#slogan-section .dynamic-slogan-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

#slogan-section .dynamic-slogan-wrapper p {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  margin: 0 !important;
  text-align: center;
  transition: var(--transition-base);
  width: calc(33.333% - 16px); /* 3 columns on desktop */
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hide empty paragraphs (like <p><br></p> from DB) */
#slogan-section .dynamic-slogan-wrapper p:empty,
#slogan-section .dynamic-slogan-wrapper p:has(br:only-child) {
  display: none !important;
}

#slogan-section .dynamic-slogan-wrapper p:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 15px rgba(37,99,235,0.2);
}

#slogan-section .dynamic-slogan-wrapper strong {
  color: #ffffff !important;
  font-weight: 800;
  display: block;
  font-size: 1.35rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

#slogan-section .dynamic-slogan-wrapper em {
  font-style: normal;
  font-weight: 500;
  color: rgba(255,255,255,0.7) !important;
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 991px) {
  #slogan-section .dynamic-slogan-wrapper p {
    width: calc(50% - 12px);
  }
}

@media (max-width: 767px) {
  #slogan-section .dynamic-slogan-wrapper p {
    width: 100%;
  }
}

