/* ==========================================================================
   NEXRISE WORLD - MODERN INVESTMENT & FINANCIAL ADVISORY THEME
   Tailored for High-End Wealth Management, Investment, and Advisory Services
   ========================================================================== */

:root {
  /* Brand Palette */
  --inv-navy-950: #060e1e;
  --inv-navy-900: #0b1528;
  --inv-navy-800: #112240;
  --inv-navy-700: #1d3557;
  --inv-slate-800: #1e293b;
  --inv-slate-700: #334155;
  --inv-slate-600: #475569;
  --inv-slate-500: #64748b;
  --inv-slate-200: #e2e8f0;
  --inv-slate-100: #f1f5f9;
  --inv-slate-50: #f8fafc;
  --inv-white: #ffffff;

  /* Investment Growth Accents */
  --inv-primary: #1e40af;
  --inv-primary-light: #3b82f6;
  --inv-growth-green: #059669;
  --inv-growth-green-light: #10b981;
  --inv-growth-emerald: #047857;
  --inv-gold: #d97706;
  --inv-gold-light: #f59e0b;

  /* Gradients */
  --inv-hero-gradient: linear-gradient(
    135deg,
    #060e1e 0%,
    #0b1d3a 50%,
    #0d2847 100%
  );
  --inv-card-gradient: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --inv-growth-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --inv-primary-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  --inv-gold-gradient: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);

  /* Shadows */
  --inv-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --inv-shadow-md:
    0 4px 12px -2px rgba(15, 23, 42, 0.08),
    0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --inv-shadow-lg:
    0 12px 28px -4px rgba(15, 23, 42, 0.1),
    0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --inv-shadow-xl: 0 20px 40px -10px rgba(15, 23, 42, 0.16);
  --inv-shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);
  --inv-shadow-blue-glow: 0 0 25px rgba(59, 130, 246, 0.25);

  /* Typography */
  --inv-font-heading: "Outfit", "Plus Jakarta Sans", sans-serif;
  --inv-font-body:
    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  /* Transitions */
  --inv-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography */
body {
  font-family: var(--inv-font-body) !important;
  color: var(--inv-slate-700);
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--inv-font-heading) !important;
  color: var(--inv-navy-950);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   CLEAN, BULLETPROOF MODERN HEADER & NAVIGATION
   ========================================================================== */
.nex-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

/* Topbar */
.nex-topbar {
  background: var(--inv-navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 0;
  font-size: 12.5px;
  color: #94a3b8;
}

.nex-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nex-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nex-topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  padding: 2px 10px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 11.5px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.nex-topbar-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nex-topbar-email a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--inv-transition);
}

.nex-topbar-email a:hover {
  color: #38bdf8;
}

.nex-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nex-social-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nex-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1 !important;
  font-size: 12px;
  transition: var(--inv-transition);
}

.nex-social-icon:hover {
  background: var(--inv-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.nex-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--inv-primary-gradient);
  color: #ffffff !important;
  padding: 4px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transition: var(--inv-transition);
}

.nex-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
  color: #ffffff !important;
}

/* Navbar */
.nex-navbar {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--inv-slate-200);
  position: relative;
  z-index: 1050;
}

.nex-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.nex-brand img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: var(--inv-transition);
}

.nex-brand:hover img {
  transform: scale(1.03);
}

/* Desktop Menu (>= 992px) */
@media (min-width: 992px) {
  .nex-menu-toggle {
    display: none;
  }
  .nex-nav-container {
    display: flex;
    align-items: center;
  }
  .nex-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3px;
  }
  .nex-nav > li {
    position: relative;
    list-style: none;
  }
  .nex-nav > li > a {
    font-family: var(--inv-font-heading);
    font-size: 16.5px;
    font-weight: 600;
    color: var(--inv-navy-900);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--inv-transition);
  }
  .nex-nav > li > a:hover,
  .nex-nav > li.active > a {
    color: var(--inv-primary);
    background: #eff6ff;
  }
  .nex-nav > li.nex-highlight-item > a {
    color: #1e40af;
    background: rgba(30, 64, 175, 0.08);
  }
  .nex-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid var(--inv-slate-200);
    border-radius: 10px;
    box-shadow: var(--inv-shadow-xl);
    padding: 8px 0;
    margin: 0;
    list-style: none;
    display: none;
    z-index: 1050;
  }
  .has-nex-dropdown:hover > .nex-dropdown {
    display: block;
    animation: nexFadeDown 0.2s ease-out forwards;
  }
  .nex-dropdown > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--inv-slate-700);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--inv-transition);
  }
  .nex-dropdown > li > a:hover {
    background: #eff6ff;
    color: var(--inv-primary);
    padding-left: 20px;
  }
  .nex-drop-header {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    padding: 6px 16px 2px;
    letter-spacing: 0.5px;
  }
  .nex-drop-divider {
    height: 1px;
    background: var(--inv-slate-100);
    margin: 6px 0;
  }
}

@keyframes nexFadeDown {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Menu (< 992px) */
@media (max-width: 991px) {
  .nex-topbar {
    display: none;
  }
  .nex-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 38px;
    height: 38px;
    background: #f8fafc;
    border: 1px solid var(--inv-slate-200);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
  }
  .nex-menu-toggle:hover,
  .nex-menu-toggle.active {
    background: #eff6ff;
    border-color: #bfdbfe;
  }
  .nex-menu-toggle .bar {
    height: 2.5px;
    width: 100%;
    background: var(--inv-navy-900);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
  }
  .nex-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nex-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .nex-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nex-nav-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--inv-slate-200);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
    padding: 15px 20px 25px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 99999 !important;
  }
  .nex-nav-container.open {
    display: block;
    animation: nexMobileSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  @keyframes nexMobileSlideDown {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .nex-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  .nex-nav > li {
    list-style: none;
  }
  .nex-nav > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--inv-navy-900);
    border-bottom: 1px solid var(--inv-slate-100);
    text-decoration: none;
  }
  .nex-drop-toggle .fa-angle-down {
    transition: transform 0.25s ease;
    color: var(--inv-slate-400);
  }
  .has-nex-dropdown.open > .nex-drop-toggle .fa-angle-down {
    transform: rotate(180deg);
    color: var(--inv-primary);
  }
  .nex-dropdown {
    display: none;
    list-style: none;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin: 4px 0 10px;
    border-left: 3px solid var(--inv-primary);
  }
  .has-nex-dropdown.open > .nex-dropdown {
    display: block;
    animation: nexMobileSubmenu 0.2s ease-out forwards;
  }
  @keyframes nexMobileSubmenu {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .nex-dropdown > li > a {
    display: block;
    padding: 8px 0;
    font-size: 13.5px;
    color: var(--inv-slate-600);
    text-decoration: none;
  }
  .nex-dropdown > li > a:hover {
    color: var(--inv-primary);
  }
}

/* ==========================================================================
   HERO SECTION - INVESTMENT POWERHOUSE
   ========================================================================== */
.hero-investment {
  position: relative;
  background: var(--inv-hero-gradient);
  color: #ffffff;
  padding: 80px 0 95px;
  overflow: hidden;
}

.hero-investment::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.18) 0%,
    rgba(30, 64, 175, 0.1) 50%,
    transparent 70%
  );
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
}

.hero-investment::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    transparent 70%
  );
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
}

.hero-grid-pattern {
  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: 40px 40px;
  z-index: 1;
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
}

.hero-title .gradient-text {
  font-size: inherit !important;
  font-weight: 800 !important;
  line-height: inherit !important;
  background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-description {
  font-size: 16.5px;
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 35px;
}

.btn-investment-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--inv-growth-gradient);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: var(--inv-transition);
  border: none;
}

.btn-investment-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  color: #ffffff !important;
}

.btn-investment-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transition: var(--inv-transition);
}

.btn-investment-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* Hero Stats Ticker */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--inv-font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-number span {
  color: #10b981;
}

.hero-stat-label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Visual Card */
.hero-visual-card {
  position: relative;
  background: rgba(255, 255, 255);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 25px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.hero-visual-img {
  max-width: 100%;
  height: 290px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));
  transition: var(--inv-transition);
}

.hero-visual-card:hover .hero-visual-img {
  transform: scale(1.03);
}

/* Floating Badges */
.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-align: left;
  animation: float 4s ease-in-out infinite;
}

.floating-chip-1 {
  top: 15px;
  left: -15px;
  animation-delay: 0s;
}

.floating-chip-2 {
  bottom: 25px;
  right: -15px;
  animation-delay: 2s;
}

.floating-chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.icon-growth {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.icon-wealth {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.floating-chip-title {
  font-size: 10.5px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.floating-chip-val {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

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

/* ==========================================================================
   FINANCIAL CALCULATORS QUICK-ACCESS SECTION
   ========================================================================== */
.calculators-section {
  padding: 35px 0 55px;
  margin-top: -45px;
  position: relative;
  z-index: 10;
}

.calc-card-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.calc-card {
  background: #ffffff;
  border: 1px solid var(--inv-slate-200);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--inv-shadow-lg);
  transition: var(--inv-transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.calc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--inv-primary-gradient);
  transition: var(--inv-transition);
}

.calc-card.sip::before {
  background: var(--inv-growth-gradient);
}

.calc-card.emi::before {
  background: var(--inv-primary-gradient);
}

.calc-card.age::before {
  background: var(--inv-gold-gradient);
}

.calc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--inv-shadow-xl);
  border-color: #cbd5e1;
}

.calc-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.calc-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.calc-card.sip .calc-icon-box {
  background: #ecfdf5;
  color: var(--inv-growth-green);
}

.calc-card.emi .calc-icon-box {
  background: #eff6ff;
  color: var(--inv-primary);
}

.calc-card.age .calc-icon-box {
  background: #fffbeb;
  color: var(--inv-gold);
}

.calc-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--inv-navy-950);
  margin: 0;
}

.calc-card-desc {
  font-size: 13.5px;
  color: var(--inv-slate-600);
  margin-bottom: 18px;
  line-height: 1.5;
}

.calc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--inv-transition);
  width: 100%;
}

.calc-card.sip .calc-btn {
  background: #ecfdf5;
  color: var(--inv-growth-green) !important;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.calc-card.sip .calc-btn:hover {
  background: var(--inv-growth-green);
  color: #ffffff !important;
}

.calc-card.emi .calc-btn {
  background: #eff6ff;
  color: var(--inv-primary) !important;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.calc-card.emi .calc-btn:hover {
  background: var(--inv-primary);
  color: #ffffff !important;
}

.calc-card.age .calc-btn {
  background: #fffbeb;
  color: var(--inv-gold) !important;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.calc-card.age .calc-btn:hover {
  background: var(--inv-gold);
  color: #ffffff !important;
}

/* ==========================================================================
   SECTION HEADINGS & UTILITIES
   ========================================================================== */
.section-badge {
  display: inline-block;
  font-family: var(--inv-font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--inv-primary);
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
  border: 1px solid #dbeafe;
}

.section-badge.growth {
  color: var(--inv-growth-green);
  background: #ecfdf5;
  border-color: #d1fae5;
}

.section-title-modern {
  font-size: 32px;
  font-weight: 800;
  color: var(--inv-navy-950);
  margin-bottom: 12px;
  line-height: 1.25;
}

.section-subtitle-modern {
  font-size: 15.5px;
  color: var(--inv-slate-600);
  max-width: 650px;
  margin-bottom: 35px;
}

/* ==========================================================================
   ABOUT NEXRISE & WALL STREET BULL SECTION
   ========================================================================== */
.about-modern-section {
  padding: 75px 0;
  background: #ffffff;
  position: relative;
}

.about-card-left {
  background: linear-gradient(145deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid var(--inv-slate-200);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  box-shadow: var(--inv-shadow-md);
}

.about-bull-img {
  max-width: 80%;
  height: 250px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 10px 15px rgba(15, 23, 42, 0.12));
  transition: var(--inv-transition);
}

.about-card-left:hover .about-bull-img {
  transform: scale(1.04);
}

.about-founder-badge {
  display: inline-block;
  background: var(--inv-navy-900);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 14px;
  box-shadow: var(--inv-shadow-sm);
}

.about-content-right {
  padding-left: 20px;
}

.about-welcome-text {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--inv-slate-700);
  margin-bottom: 22px;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.about-pillar-box {
  background: #f8fafc;
  border: 1px solid var(--inv-slate-200);
  border-radius: 14px;
  padding: 18px;
  transition: var(--inv-transition);
}

.about-pillar-box:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--inv-shadow-md);
  transform: translateY(-3px);
}

.about-pillar-box h5 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--inv-navy-950);
  margin-bottom: 6px;
}

.about-pillar-box h5 i {
  color: var(--inv-primary);
  font-size: 17px;
}

.about-pillar-box p {
  font-size: 13px;
  color: var(--inv-slate-600);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   FLAGSHIP INVESTMENT & INSURANCE SHOWCASE (4 HERO CARDS)
   ========================================================================== */
.investment-showcase-section {
  padding: 75px 0;
  background: var(--inv-slate-50);
  border-top: 1px solid var(--inv-slate-200);
  border-bottom: 1px solid var(--inv-slate-200);
}

.investment-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.invest-product-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--inv-shadow-md);
  border: 1px solid var(--inv-slate-200);
  transition: var(--inv-transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.invest-product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--inv-shadow-xl);
  border-color: #cbd5e1;
}

.invest-card-img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.invest-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.invest-product-card:hover .invest-card-img {
  transform: scale(1.08);
}

.invest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 21, 40, 0.85) 0%,
    rgba(11, 21, 40, 0.2) 60%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.invest-category-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 6px;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.invest-card-badge-gold {
  background: var(--inv-gold-gradient);
}

.invest-card-badge-green {
  background: var(--inv-growth-gradient);
}

.invest-card-badge-blue {
  background: var(--inv-primary-gradient);
}

.invest-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.invest-card-body h4 {
  font-size: 17.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.invest-card-body h4 a {
  color: var(--inv-navy-950);
  text-decoration: none;
  transition: var(--inv-transition);
}

.invest-card-body h4 a:hover {
  color: var(--inv-primary);
}

.invest-card-body p {
  font-size: 13px;
  color: var(--inv-slate-600);
  margin-bottom: 16px;
  line-height: 1.5;
}

.invest-explore-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--inv-primary);
  text-decoration: none;
  transition: var(--inv-transition);
}

.invest-explore-link:hover {
  color: var(--inv-navy-950);
  transform: translateX(4px);
  text-decoration: none;
}

/* ==========================================================================
   ACCOUNTING & TAXATION SERVICES (ALL 16 SERVICES GRID)
   ========================================================================== */
.services-section-modern {
  padding: 80px 0;
  background: #ffffff;
}

.tax-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tax-service-card {
  background: #ffffff;
  border: 1px solid var(--inv-slate-200);
  border-radius: 14px;
  padding: 20px;
  transition: var(--inv-transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none !important;
  color: inherit !important;
  position: relative;
  overflow: hidden;
}

.tax-service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--inv-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--inv-transition);
}

.tax-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--inv-shadow-lg);
  border-color: #cbd5e1;
}

.tax-service-card:hover::after {
  transform: scaleX(1);
}

.tax-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--inv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 12px;
  transition: var(--inv-transition);
}

.tax-service-card:hover .tax-icon-wrap {
  background: var(--inv-primary);
  color: #ffffff;
  transform: scale(1.08);
}

.tax-service-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--inv-navy-950);
  margin-bottom: 6px;
  line-height: 1.35;
}

.tax-service-meta {
  font-size: 12px;
  color: var(--inv-slate-500);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tax-service-meta i {
  transition: var(--inv-transition);
}

.tax-service-card:hover .tax-service-meta i {
  transform: translateX(4px);
  color: var(--inv-primary);
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section-modern {
  padding: 80px 0;
  background: #f8fafc;
  border-top: 1px solid var(--inv-slate-200);
}

.testi-card-modern {
  background: #ffffff;
  border: 1px solid var(--inv-slate-200);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--inv-shadow-md);
  margin: 10px;
  transition: var(--inv-transition);
  position: relative;
}

.testi-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--inv-shadow-xl);
}

.testi-stars {
  color: #f59e0b;
  font-size: 13.5px;
  margin-bottom: 12px;
}

.testi-quote-text {
  font-size: 14px;
  color: var(--inv-slate-700);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  min-height: 75px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--inv-slate-100);
  padding-top: 14px;
}

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--inv-primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.testi-author-info h6 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--inv-navy-950);
}

.testi-author-info span {
  font-size: 11.5px;
  color: var(--inv-slate-500);
}

/* ==========================================================================
   PARTNERS / ASSOCIATED WITH TRUST SECTION
   ========================================================================== */
.trust-section-modern {
  padding: 55px 0;
  background: #ffffff;
  border-top: 1px solid var(--inv-slate-200);
}

.trust-logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.trust-logo-card {
  background: #ffffff;
  border: 1px solid var(--inv-slate-200);
  border-radius: 12px;
  padding: 14px 22px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--inv-transition);
  box-shadow: var(--inv-shadow-sm);
}

.trust-logo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--inv-shadow-md);
  border-color: #cbd5e1;
}

.trust-logo-card img {
  max-height: 44px;
  max-width: 135px;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.9;
  transition: var(--inv-transition);
}

.trust-logo-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* ==========================================================================
   FOOTER MODERNIZATION
   ========================================================================== */
.footer-modern {
  background: var(--inv-navy-950);
  color: #94a3b8;
  padding: 75px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
}

.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: 16px;
}

.footer-bio {
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-title {
  font-family: var(--inv-font-heading);
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--inv-primary-light);
}

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

.footer-links-list li {
  margin-bottom: 11px;
}

.footer-links-list a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--inv-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links-list a:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: #cbd5e1;
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}

.footer-contact-item a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--inv-transition);
}

.footer-contact-item a:hover {
  color: #38bdf8;
}

.footer-bottom-bar {
  margin-top: 55px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: #64748b;
}

.footer-bottom-bar a {
  color: #94a3b8;
}

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

/* Back to top modern */
#to-top {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--inv-primary-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  bottom: 25px;
  right: 25px;
  transition: var(--inv-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

#to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.6);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (min-width: 1200px) {
  .hero-title {
    font-size: 46px;
  }
}

@media (max-width: 1199px) {
  .hero-title {
    font-size: 36px;
  }
  .tax-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .investment-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .hero-investment {
    padding: 55px 0 75px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-visual-card {
    margin-top: 35px;
  }
  .calc-card-deck {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .calculators-section {
    margin-top: -20px;
  }
  .tax-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .investment-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-pillars {
    grid-template-columns: 1fr;
  }
  .about-content-right {
    padding-left: 0;
    margin-top: 30px;
  }
  .footer-col-spacing {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .nex-brand img {
    height: 42px;
  }
  .hero-investment {
    padding: 40px 0 55px;
  }
  .hero-title {
    font-size: 26px;
  }
  .hero-description {
    font-size: 14.5px;
    margin-bottom: 22px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-investment-primary,
  .btn-investment-secondary {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    gap: 16px;
    justify-content: space-between;
  }
  .hero-stat-number {
    font-size: 20px;
  }
  .hero-visual-card {
    margin-top: 25px;
    padding: 18px 12px;
  }
  .hero-visual-img {
    height: 200px;
  }
  .floating-chip {
    display: none;
  }
  .calculators-section {
    margin-top: 0;
    padding: 25px 0 35px;
  }
  .section-title-modern {
    font-size: 24px;
  }
  .about-modern-section {
    padding: 45px 0;
  }
  .about-card-left {
    padding: 20px 12px;
  }
  .about-bull-img {
    height: 180px;
  }
  .tax-services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .investment-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .trust-logos-grid {
    gap: 10px;
  }
  .trust-logo-card {
    padding: 8px 14px;
    height: 60px;
  }
  .trust-logo-card img {
    max-height: 34px;
    max-width: 100px;
  }
  .footer-modern {
    padding-top: 45px;
  }
  .footer-bottom-bar {
    margin-top: 30px;
    text-align: center;
  }
}

/* ==========================================================================
   REGULATORY & COMPLIANCE PILL BUTTONS (Reference: ninvest.in)
   ========================================================================== */
.nex-compliance-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nex-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 7px;
  padding: 4px 11px;
  text-decoration: none !important;
  color: #0f172a !important;
  font-family: var(--inv-font-heading);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nex-pill-btn:hover {
  background: #ffffff;
  border-color: #38bdf8;
  color: #0284c7 !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.16);
}

.nex-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  transition: all 0.2s ease;
}

.nex-pill-btn.pill-sid .nex-pill-icon {
  background: #eff6ff;
  color: #2563eb;
}
.nex-pill-btn.pill-conduct .nex-pill-icon {
  background: #eff6ff;
  color: #0284c7;
}
.nex-pill-btn.pill-risk .nex-pill-icon {
  background: #f0fdf4;
  color: #059669;
}
.nex-pill-btn.pill-sebi .nex-pill-icon {
  background: #fef2f2;
  color: #dc2626;
}

.nex-pill-btn:hover .nex-pill-icon {
  transform: scale(1.08);
}

/* Mobile Menu Compliance Strip */
.nex-mobile-compliance {
  display: none;
}

@media (max-width: 991px) {
  .nex-mobile-compliance {
    display: block;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--inv-slate-200);
  }

  .nex-mobile-compliance-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--inv-slate-500);
    margin-bottom: 10px;
  }

  .nex-mobile-compliance .nex-compliance-pills {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nex-mobile-compliance .nex-pill-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* Footer Compliance Bar */
.footer-compliance-bar {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-compliance-title {
  color: #ffffff;
  font-size: 14px;
}

.footer-compliance-title strong {
  color: #ffffff;
}

@media (max-width: 991px) {
  .footer-compliance-bar .nex-compliance-pills {
    justify-content: flex-start !important;
  }
}

