:root {
  /* Primary Colors */
  --primary: #216d61;
  --primary-rgb: 33, 109, 97;
  --bs-primary-rgb: 33, 109, 97;

  --primary-text: #216d61;
  --primary-text-rgb: 2, 107, 108;

  --body-bg: 12, 20, 33;

  /* Gray Scale */
  --gray-300: #e0e7ff;
  --gray-400: #1e293b;

  /* Border Colors */
  --border-color: rgba(255, 255, 255, 0.2);
  --border-color-translucent: rgba(0, 0, 0, 0.175);

  /* Background Colors */
  --bg-primary: rgba(255, 255, 255, 0.04);
  --bg-secondary: rgba(255, 255, 255, 0.08);
  --bg-tertiary: rgba(255, 255, 255, 0.12);

}

.text-primary {
  color: var(--primary) !important;
}

a {
  color: var(--primary-text) !important;
  text-decoration: none !important;
}

p {
  color: var(--bs-secondary-color) !important;
}

.bg-light {
  background-color: #192231 !important;
}

.text-blue {
  color: var(--gray-400);
}

.bg-soft-primary {
  background: rgba(var(--primary-rgb), 0.1)
}

body {
  font-family: "Nunito", sans-serif;
  background-color: rgb(var(--body-bg));
}

/* Custom Utility Classes */
.text-gray-400 {
  color: var(--gray-400) !important;
}

/* .bg-opacity-10 {
  background-color: rgba(255, 255, 255, 0.1) !important;
} */

body.offcanvas-open {
  overflow: hidden;
  padding-right: 0 !important;
}

/* Unique Tab Navigation Styles */
.nav-tabs {
  border-bottom: none;
}

.nav-tabs .nav-link {
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  color: var(--gray-300);
  transition: all 0.3s ease;
  position: relative;
  background: #252c38;
  margin: 0 0.25rem;
  border-radius: 25px 25px 0 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(var(--primary), 0.2);
}

.nav-tabs .nav-link i {
  font-size: 1.3rem;
  margin-right: 0.75rem;
  transition: transform 0.3s ease;
}

.nav-tabs .nav-link:hover i,
.nav-tabs .nav-link.active i {
  transform: scale(1.1);
}

.nav-tabs .nav-link span {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* Hero Section Custom Styles */
.hero-section {
  background: linear-gradient(135deg, rgb(var(--body-bg)) 0%, rgba(var(--primary-rgb), 0.1) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hover-bg-light:hover {
  background-color: rgba(var(--primary-rgb), 0.1) !important;
  color: var(--primary) !important;
  transform: translateX(5px);
  transition: all 0.3s ease;
}

.hero-badge-wrapper {
  position: relative;
  display: inline-block;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(var(--primary-rgb), 0.1);
  padding: 8px 20px;
  border-radius: 30px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(var(--primary-rgb), 0.24);
  transition: all 0.3s ease;
}

.feature-card {
  /* background: rgba(255, 255, 255, 0.1); */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 150px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  position: relative;
  overflow: hidden;
}


/* Default active state */
.feature-card.active {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.25);
  border-color: rgba(var(--primary-rgb), 0.5);
  background-color: rgba(var(--primary-rgb), 0.1);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.25);
  border-color: rgba(var(--primary-rgb), 0.5);
  background-color: rgba(var(--primary-rgb), 0.1);
}

.feature-card .feature-icon {
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}


.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}


.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.1);
}

.hero-badge-line {
  position: absolute;
  top: 50%;
  left: -30px;
  width: 20px;
  height: 2px;
  background: var(--primary);
  opacity: 0.5;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

.gradient-wrapper {
  position: relative;
  display: inline-block;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}


.hero-cta-wrapper {
  position: relative;
  display: inline-block;
}

.hero-shape-1,
.hero-shape-2 {
  position: absolute;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  z-index: 0;
}

.hero-shape-1 {
  width: 100px;
  height: 100px;
  top: -20px;
  right: -20px;
  animation: float 6s ease-in-out infinite;
}

.hero-shape-2 {
  width: 60px;
  height: 60px;
  bottom: -10px;
  left: -10px;
  animation: float 6s ease-in-out infinite 2s;
}

.hero-visual {
  position: relative;
  padding: 20px;
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
}

.hero-main-image {

  filter: drop-shadow(5px 5px 5px rgba(30, 41, 59, 20%));
  animation: float 6s ease-in-out infinite;
}

.card-icon {
  width: 40px;
  height: 40px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon i {
  color: var(--primary);
  font-size: 1.2rem;
}

.card-content {
  flex: 1;
}

.card-title {
  color: white;
  margin-bottom: 2px;
}

.card-text {
  color: white;
  margin: 0;
}

.hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 1px 1px, rgba(var(--primary-rgb), 0.1) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.5;
  z-index: 1;
}

.hero-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 1px 1px, var(--gray-300) 1px, transparent 0);
  background-size: 8px 8px;
  opacity: 0.15;
  z-index: 1;
}

.hero-bg-shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.02) 100%);
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

.section {
  padding: 80px 0;
}

.title-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  font-weight: 700;
  opacity: 0.05;
  z-index: 0;
  white-space: nowrap;
}

.img-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.img-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.2);
}


/* HTML: <div class="ribbon">Your text content</div> */

.ribbon {
  --f: .5em;
  /* control the folded part */
  padding-inline: 1.5lh;
  position: absolute;
  top: 0;
  left: 0;
  padding-bottom: var(--f);
  border-image: conic-gradient(#0008 0 0) 51%/var(--f);
  clip-path: polygon(100% calc(100% - var(--f)), 100% 100%, calc(100% - var(--f)) calc(100% - var(--f)), var(--f) calc(100% - var(--f)), 0 100%, 0 calc(100% - var(--f)), 999px calc(100% - var(--f) - 999px), calc(100% - 999px) calc(100% - var(--f) - 999px));
  transform: translate(calc((cos(45deg) - 1)*100%), -100%) rotate(-45deg);
  transform-origin: 100% 100%;
}


.demo-img {
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.fs-12 {
  font-size: 0.75rem;
}

.fs-22 {
  font-size: 1.375rem;
}

.card {
  border: none;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card-body {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.footer-section {
  padding: 120px 0;
}

.badge-text {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: white;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray-300);
  opacity: 0.8;
  margin-bottom: 32px;
}

.doc-topbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 9;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
  transition: all 0.3s ease;
}

.navbar{
  backdrop-filter: blur(10px);
  background-color: rgba(var(--body-bg), 0.70);
}

/* Card Styles */
.card {
  border: none;
  transition: all 0.3s ease;
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.1);
}

.card-body {
  padding: 2rem;
}


/* Sidebar Navigation */
.sticky-top {
  top: 100px;
}

.sidebar-sticky .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

/* .sidebar-sticky .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
} */

.sidebar-sticky .nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  transform: translateX(5px);
}

/* .sidebar-sticky .nav-link:hover::before {
  transform: scaleY(1);
} */

.sidebar-sticky .nav-link.active {
  background: rgba(var(--primary-rgb), 1);
  color: #ffffff !important;
  border-left: 3px solid var(--primary);
}

.sidebar-sticky .nav-link i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.sidebar-sticky .nav-link:hover i {
  transform: scale(1.1);
}

.sidebar-sticky h5 {
  padding-left: 1rem;
}

ul li {
  margin-bottom: 0.5rem;
}

ul a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  color: var(--gray-400) !important;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

ul a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

ul a:hover {
  background: rgba(var(--primary-rgb), 0.05);
  color: var(--primary) !important;
  transform: translateX(5px);
}

ul a:hover::before {
  transform: scaleY(1);
}

ul a i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

ul a:hover i {
  transform: scale(1.1);
}

.table {
  --bs-table-bg: rgba(255, 255, 255, .05);
}

.tab-nav-sticky {
  z-index: 1021;
}

/* Code Blocks */

.doc-code {
  position: relative;
  background-color: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0.5rem;
  padding: 1.5rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  /* border: 1px solid rgba(var(--primary-rgb), 0.1); */
}

.doc-code .copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: 0.25rem;
  color: var(--primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-5px);
  z-index: 2;
}

.doc-code:hover .copy-btn {
  opacity: 1;
  transform: translateY(0);
}

.doc-code .copy-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.doc-code .copy-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.doc-code .copy-btn:hover i {
  transform: scale(1.1);
}

/* Section Numbers */
.bg-soft-primary-card {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
}

.doc-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

/* Theming Section Styles */
.icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.bg-soft-primary {
  background-color: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

/* Accordion Styles */
.accordion-button {
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem !important;
  transition: all 0.3s ease;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(99, 102, 241, 0.1);
}

.accordion-button::after {
  transition: all 0.3s ease;
    filter: brightness(0) invert(1);

}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  border-radius: 0 0 0.5rem 0.5rem;
}

/* Mobile Styles */
@media (max-width: 991.98px) {
  .offcanvas {
    width: 280px;
  }

  .sidebar-menu a {
    margin: 0.25rem 0;
  }

  .offcanvas-header {
    background: rgba(var(--primary-rgb), 0.02);
  }
}

/*
 Custom tooltip styling */
.custom-tooltip .tooltip-inner {
  background: linear-gradient(135deg, #306fd6, #22cdc6);
  color: white;
  font-weight: 500;
  border-radius: 10px;
  padding: 10px 15px;
  box-shadow: 0 8px 25px rgba(48, 111, 214, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #306fd6;
}

.custom-tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #306fd6;
}

.custom-tooltip.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: #306fd6;
}

.custom-tooltip.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: #306fd6;
}

/* Enhanced feature card animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
  }
}

.feature-card.active {
  animation: pulse 2s infinite;
}

/* Glassmorphism effect enhancement */
.feature-card {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.feature-card:hover {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Smooth transitions for all interactive elements */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


.sidebar-sticky {
  position: sticky;
  top: 0px;
  max-height: 100vh;
  overflow-y: auto;
}

.doc-section {
  scroll-margin-top: 100px;
}
