/* Web5 Nexus Custom Styles - Black & Dark Blue Theme */

:root {
  /* Core Colors - Dark Theme Only */
  --web5-primary: #007bff;
  --web5-text-light: #ffffff;
  --web5-text-muted: #a0a0a0;
  
  /* Black & Dark Blue Background Colors */
  --web5-bg-black: #000000;
  --web5-bg-dark-blue-1: #0a0e1a;
  --web5-bg-dark-blue-2: #1a1f2e;
  --web5-bg-dark-blue-3: #1c243c;
  --web5-bg-dark-blue-4: #171e34;
  
  /* Single Consistent Dark Color Background */
--web5-gradient-dark: #0a0e1a;
--web5-gradient-dark-card: #0a0e1a;
--web5-gradient-dark-section: #0a0e1a;
--web5-gradient-dark-overlay: #0a0e1a;
  
  /* Accent Colors for Interactive Elements */
  --web5-blue: #007bff;
  --web5-indigo: #6610f2;
  --web5-purple: #6f42c1;
  
  /* Interactive Gradients */
  --web5-gradient-primary: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
  --web5-gradient-accent: linear-gradient(135deg, #6610f2 0%, #6f42c1 100%);
}

/* Social Media Logo Rotation Animation */
@keyframes rotate-logo {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.rotating-logo {
  animation: rotate-logo 20s linear infinite;
  transition: all 0.3s ease;
  filter: grayscale(0.3);
}

.rotating-logo:hover {
  animation-play-state: paused;
  transform: scale(1.1);
  filter: grayscale(0) brightness(1.2) drop-shadow(0 0 10px rgba(97, 218, 251, 0.5));
}

/* Staggered rotation for multiple logos */
.rotating-logo:nth-child(1) { animation-delay: 0s; }
.rotating-logo:nth-child(2) { animation-delay: -3s; }
.rotating-logo:nth-child(3) { animation-delay: -6s; }
.rotating-logo:nth-child(4) { animation-delay: -9s; }
.rotating-logo:nth-child(5) { animation-delay: -12s; }
.rotating-logo:nth-child(6) { animation-delay: -15s; }

/* Update primary color to match Web5 Nexus */
.btn-primary {
  background-color: var(--web5-primary) !important;
  border-color: var(--web5-primary) !important;
  color: var(--web5-text-light) !important;
}

.btn-primary:hover {
  background-color: #4fa8d1 !important;
  border-color: #4fa8d1 !important;
  color: var(--web5-text-light) !important;
}

.text-primary {
  color: var(--web5-primary) !important;
}

.text-clip--primary {
  background: linear-gradient(135deg, #007bff 0%, #6610f2 50%, #6f42c1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Web5 Glow Effect */
.web5-glow {
  box-shadow: 0 0 20px rgba(97, 218, 251, 0.3);
  transition: all 0.3s ease;
}

.web5-glow:hover {
  box-shadow: 0 0 30px rgba(97, 218, 251, 0.6);
  transform: translateY(-2px);
}

/* Gradient Border Styles */
.gradient-border--surface-dark {
  background: var(--web5-gradient-dark);
  border: 1px solid rgba(0, 123, 255, 0.2);
}

.gradient-border--surface-dark:hover {
  border-color: rgba(0, 123, 255, 0.4);
  transform: translateY(-2px);
}

.border-primary {
  border-color: var(--web5-primary) !important;
}

.gradient-border--primary {
  background: var(--web5-gradient);
}

/* Logo Styles */
.logo {
  display: inline-block;
  text-decoration: none;
}

.logo__img {
  max-height: 2.5rem;
  width: auto;
  transition: all 0.3s ease;
}

.logo__img--light {
  display: block;
}

.logo__img--dark {
  display: none;
}

[data-bs-theme=dark] .logo__img--light {
  display: none;
}

[data-bs-theme=dark] .logo__img--dark {
  display: block;
}

/* Hero Section */
.hero-5 .flex-shrink-0 img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar-nav .nav-link {
  color: var(--web5-text-light) !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--web5-primary) !important;
}

/* Hero Background */


.hero-5__circle {
  background: var(--web5-gradient-accent) !important;
}

/* Uses Card Styles */
.uses_card {
  background: var(--web5-gradient-dark);
  border: 1px solid rgba(0, 123, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.uses_card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
  border-color: rgba(0, 123, 255, 0.3);
}

.uses_card .lable_sect {
  background: var(--web5-gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.uses_card h4 {
  color: var(--web5-text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.uses_card p {
  color: var(--web5-text-light);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.uses_card button {
  background: var(--web5-gradient-primary);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.uses_card button:hover {
  background: var(--web5-gradient-accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Code Section */
.code_section {
  background: var(--web5-gradient-dark);
  border: 1px solid rgba(0, 123, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.code_section pre {
  background: #1a1a1a;
  color: #e6e6e6;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}

/* Nav Tabs */
.nav-tabs .nav-link {
  background: var(--web5-gradient-dark);
  border: 1px solid rgba(0, 123, 255, 0.1);
  color: var(--web5-text-light);
  border-radius: 8px 8px 0 0;
  margin-right: 0.5rem;
}

.nav-tabs .nav-link.active {
  background: var(--web5-gradient-primary);
  border-color: var(--web5-primary);
  color: white;
}

/* Footer */
footer {
  background: var(--web5-gradient-dark) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-5 h1 {
    font-size: 2rem;
  }
  
  .uses_card {
    margin-bottom: 1rem;
  }
  
  .code_section {
    margin-top: 1rem;
  }
}

/* Web5 Glow Animation */
@keyframes web5-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(97, 218, 251, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(97, 218, 251, 0.6);
  }
}

.uses_card:hover {
  animation: web5-glow 2s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 123, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--web5-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--web5-blue-dark);
}

/* Mobile Navigation - Removed - Now handled by mobile-nav.css */

/* Mobile tokens display fix */
@media (max-width: 767.98px) {
  .hero-5 .list.list-row {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
  }
  
  .hero-5 .list.list-row li {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
  }
  
  .hero-5 .list.list-row img {
    max-width: 60px;
    max-height: 30px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
}


/* Orbit Planet Styles - Bigger Size */
.orbit__planet {
  width: 3rem !important;
  height: 3rem !important;
  background: var(--web5-gradient-primary) !important;
  border: 2px solid var(--web5-primary) !important;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.4) !important;
  transition: all 0.3s ease !important;
}

.orbit__planet:hover {
  transform: translate(-50%, -50%) scale(1.2) !important;
  box-shadow: 0 0 25px rgba(0, 123, 255, 0.6) !important;
}



/* Navigation Links */
.navbar-nav .nav-link {
  color: var(--web5-text-light) !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--web5-primary) !important;
}

/* Blockchain Grid */
#blockchain-grid {
  background: var(--web5-gradient-dark);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(0, 123, 255, 0.1);
}

#blockchain-grid .col-lg-1,
#blockchain-grid .col-md-2,
#blockchain-grid .col-sm-3,
#blockchain-grid .col-4 {
  margin-bottom: 1rem;
}

#blockchain-grid .w-20.h-18 {
  background: var(--web5-gradient-dark);
  border: 1px solid rgba(0, 123, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

#blockchain-grid .blockchain-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

#blockchain-grid .blockchain-placeholder {
  width: 32px;
  height: 32px;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--web5-text-light);
  font-size: 0.8rem;
  font-weight: 600;
}

#blockchain-grid img {
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
  transition: all 0.3s ease;
}

#blockchain-grid .text-center.mt-2 {
  margin-top: 0.5rem;
}

#blockchain-grid .badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  font-size: 0.6rem;
  padding: 0.25rem 0.5rem;
}

#blockchain-grid small {
  color: var(--web5-text-light);
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
  display: block;
  margin-top: 0.25rem;
}

/* Badge Styles */
.badge.bg-primary {
  background: var(--web5-gradient-primary) !important;
}

.badge.bg-success {
  background: var(--web5-gradient-accent) !important;
}

/* Success Color Overrides */
.text-success {
  color: var(--web5-primary) !important;
}

.bg-success {
  background: var(--web5-gradient-primary) !important;
}

.btn-success {
  background: var(--web5-gradient-primary) !important;
  border: 1px solid var(--web5-primary) !important;
  color: white !important;
}

.btn-success:hover {
  background: var(--web5-gradient-accent) !important;
  border-color: var(--web5-indigo) !important;
  transform: translateY(-2px);
}

.gradient-border--success {
  background: var(--web5-gradient-primary);
  border: 1px solid var(--web5-primary);
}

.gradient-border--success:hover {
  background: var(--web5-gradient-accent);
  border-color: var(--web5-indigo);
}

/* Form Elements */
.form-check-input:checked {
  background-color: var(--web5-primary) !important;
  border-color: var(--web5-primary) !important;
}

.form-check-input:focus {
  border-color: var(--web5-primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25) !important;
}

.progress-bar.bg-success {
  background: var(--web5-gradient-primary) !important;
}

.alert-success {
  background: var(--web5-gradient-dark) !important;
  border: 1px solid rgba(0, 123, 255, 0.2) !important;
  color: var(--web5-text-light) !important;
}

a.text-success {
  color: var(--web5-primary) !important;
}

a.text-success:hover {
  color: var(--web5-blue-dark) !important;
}

/* Additional Root Variables */
:root {
  --bs-success: var(--web5-primary);
  --bs-success-rgb: 0, 123, 255;
  --bs-success-text-emphasis: var(--web5-primary);
  --bs-success-bg-subtle: rgba(0, 123, 255, 0.1);
  --bs-success-border-subtle: rgba(0, 123, 255, 0.2);
}

/* Border and Outline Styles */
.border-success {
  border-color: var(--web5-primary) !important;
}

.outline-success {
  color: var(--web5-primary) !important;
  border-color: var(--web5-primary) !important;
}

/* Hover States */
.hover\:bg-success:hover {
  background: var(--web5-gradient-primary) !important;
}

.hover\:text-success:hover {
  color: var(--web5-primary) !important;
}

.hover\:border-success:hover {
  border-color: var(--web5-primary) !important;
}

/* Dark Theme Backgrounds */
body {
  background: var(--web5-gradient-dark) !important;
  position: relative;
}

/* Removed body overlay since we're using solid color */


/* Section Backgrounds - All use same gradient */
.section-space-md-y,
.section-space-lg-y,
.section-space-sm-y,
.section-space-xsm-y,
.section-space-top,
.section-space-bottom,
.section-space-sm-bottom,
.section-space-md-bottom,
.section-space-lg-top {
  background: var(--web5-gradient-dark) !important;
  position: relative;
}

/* Card Backgrounds - All use same gradient */
.card,
.gradient-border,
.bg-light,
.bg-light-subtle,
.bg-dark {
  background: var(--web5-gradient-dark) !important;
  border: 1px solid rgba(0, 123, 255, 0.15) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
}

.card:hover,
.gradient-border:hover,
.bg-dark:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(0, 123, 255, 0.15) !important;
  border-color: rgba(0, 123, 255, 0.3) !important;
}

/* Navigation and Header - Same gradient */
.primary-header,
.navbar {
  background: var(--web5-gradient-dark) !important;
  backdrop-filter: blur(10px) !important;
}

/* Footer - Same gradient */
footer {
  background: var(--web5-gradient-dark) !important;
}

/* Pricing Cards - Same gradient */
.price-card-4 .gradient-border {
  background: var(--web5-gradient-dark) !important;
  border: 1px solid rgba(0, 123, 255, 0.2) !important;
}

/* Blockchain Grid - Same gradient */
#blockchain-grid .w-20.h-18 {
  background: var(--web5-gradient-dark) !important;
  border: 1px solid rgba(0, 123, 255, 0.1) !important;
}

/* Integration Tools Section - Same gradient */
.scroller-x__list .w-20.h-18 {
  background: var(--web5-gradient-dark) !important;
  border: 1px solid rgba(0, 123, 255, 0.1) !important;
}

/* Buttons */
.btn-primary {
  background: var(--web5-gradient-primary) !important;
  border: 1px solid var(--web5-blue) !important;
}

.btn-outline-primary {
  background: transparent !important;
  border: 1px solid var(--web5-blue) !important;
  color: var(--web5-blue) !important;
}

.btn-outline-primary:hover {
  background: var(--web5-gradient-primary) !important;
  color: white !important;
}

/* Primary Color Overrides */
.text-primary {
  color: var(--web5-blue) !important;
}

.bg-primary {
  background: var(--web5-gradient-primary) !important;
}

.border-primary {
  border-color: var(--web5-blue) !important;
}

/* Text Colors */
.text-light {
  color: var(--web5-text-light) !important;
}

.text-heading {
  color: white !important;
}

/* Form Elements */
.form-control,
.form-select {
  background: var(--web5-gradient-dark) !important;
  border: 1px solid rgba(0, 123, 255, 0.2) !important;
}

.form-control:focus,
.form-select:focus {
  background: var(--web5-gradient-dark) !important;
  border-color: var(--web5-blue) !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25) !important;
}

/* Modal and Dropdown */
.modal-content,
.dropdown-menu,
.table,
.alert,
.progress,
.accordion-item,
.accordion-button {
  background: var(--web5-gradient-dark) !important;
  border: 1px solid rgba(0, 123, 255, 0.1) !important;
}

.table td,
.table th {
  border-color: rgba(0, 123, 255, 0.1) !important;
  color: var(--web5-text-light) !important;
}

.alert {
  color: var(--web5-text-light) !important;
}

.progress {
  background: rgba(0, 123, 255, 0.1) !important;
}

.progress-bar {
  background: var(--web5-gradient-primary) !important;
}

.accordion-item {
  border-color: rgba(0, 123, 255, 0.1) !important;
}

.accordion-button {
  color: var(--web5-text-light) !important;
}

.accordion-button:not(.collapsed) {
  background: var(--web5-gradient-primary) !important;
  color: white !important;
}

/* Badge and Background Overrides */
.badge.bg-primary,
.badge.bg-success {
  background: var(--web5-gradient-primary) !important;
}

.bg-white,
.bg-light,
.bg-light-subtle {
  background: var(--web5-gradient-dark) !important;
}

/* Additional Light Background Overrides */
.bg-light.bg-opacity-5,
.bg-light.bg-opacity-10,
.bg-light.bg-opacity-20 {
  background: var(--web5-gradient-dark) !important;
  opacity: 0.8 !important;
}

.bg-light-subtle {
  background: var(--web5-gradient-dark) !important;
}

/* Button Overrides */
.btn.bg-light {
  background: var(--web5-gradient-dark) !important;
  border: 1px solid rgba(0, 123, 255, 0.2) !important;
}

.btn.bg-light:hover {
  background: var(--web5-gradient-primary) !important;
  border-color: var(--web5-blue) !important;
}

/* Comprehensive Dark Theme Overrides */
[class*="bg-light"],
[class*="bg-white"],
[class*="bg-light-subtle"],
[class*="bg-light-emphasis"] {
  background: var(--web5-gradient-dark) !important;
  color: var(--web5-text-light) !important;
}

/* Force all light text to white */
[class*="text-dark"] {
  color: var(--web5-text-light) !important;
}

/* Hover states for dark theme */
.hover\:bg-light:hover {
  background: var(--web5-gradient-dark) !important;
}

.hover\:bg-white:hover {
  background: var(--web5-gradient-dark) !important;
}

/* Opacity variations for dark theme */
.bg-opacity-5 {
  opacity: 0.8 !important;
}

.bg-opacity-10 {
  opacity: 0.9 !important;
}

.bg-opacity-20 {
  opacity: 1 !important;
}

/* Feature Images Dark Theme */
.tool-detail-content img {
  filter: brightness(0.8) contrast(1.2) saturate(0.8);
  border-radius: 12px;
  /* background: var(--web5-gradient-dark); */
  padding: 1rem;
  border: 1px solid rgba(0, 123, 255, 0.1);
}

.tool-detail-content img:hover {
  filter: brightness(0.9) contrast(1.1) saturate(0.9);
  border-color: rgba(0, 123, 255, 0.3);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Darker Background Overrides */
.bg-dark.bg-opacity-5 {
  background: var(--web5-gradient-dark) !important;
  opacity: 0.9 !important;
}

.bg-dark.bg-opacity-20 {
  background: var(--web5-gradient-dark) !important;
  opacity: 0.95 !important;
}

.bg-dark.bg-opacity-80 {
  background: var(--web5-gradient-dark) !important;
  opacity: 1 !important;
}

.bg-dark.bg-opacity-90 {
  background: var(--web5-gradient-dark) !important;
  opacity: 1 !important;
}

/* Testimonial Section Darker */
.testimonial-slider-3 {
  background: var(--web5-gradient-dark) !important;
}

/* Force all remaining light elements to dark */
.text-dark {
  color: var(--web5-text-light) !important;
}

.text-body {
  color: var(--web5-text-light) !important;
}

.border-light,
.border-light-subtle {
  border-color: rgba(0, 123, 255, 0.2) !important;
}

.shadow,
.shadow-sm,
.shadow-lg {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Force navbar to dark theme */
.primary-header--transparent-light-alt {
  background: var(--web5-gradient-dark) !important;
}

.primary-header--transparent-light-alt .navbar-collapse {
  background-color: var(--web5-gradient-dark) !important;
}

.primary-header--transparent-light-alt .nav-link {
  color: var(--web5-text-light) !important;
}

.primary-header--transparent-light-alt .nav-link.active {
  color: var(--web5-primary) !important;
}

.primary-header--transparent-light-alt .navigation-0__menu {
  background-color: var(--web5-gradient-dark) !important;
}

.primary-header--transparent-light-alt .navigation-0__menu-link {
  color: var(--web5-text-light) !important;
}

.primary-header--transparent-light-alt .navigation-0__menu-title {
  color: var(--web5-text-light) !important;
}

/* Force footer to dark theme */
footer,
.section-space-lg-top.section-space-sm-bottom {
  background: var(--web5-gradient-dark) !important;
}

/* Force all section backgrounds to dark */
.section-space-lg-top,
.section-space-md-bottom,
.section-space-sm-bottom {
  /* background: var(--web5-gradient-dark) !important; */
}

/* Force any remaining light elements */
.btn-dark-emphasis {
  /* background: var(--web5-gradient-dark) !important; */
  border: 1px solid rgba(0, 123, 255, 0.2) !important;
  color: var(--web5-text-light) !important;
}

.btn-dark-emphasis:hover {
  background: var(--web5-gradient-primary) !important;
  border-color: var(--web5-blue) !important;
}

/* Force all badges to dark theme */
.badge.bg-primary,
.badge.text-bg-primary {
  background: var(--web5-gradient-dark) !important;
  color: var(--web5-primary) !important;
}

.badge.bg-danger {
  background: var(--web5-gradient-dark) !important;
  color: #dc3545 !important;
}

/* Force any remaining light backgrounds */
.bg-primary.bg-opacity-10 {
  background: var(--web5-gradient-dark) !important;
  opacity: 0.8 !important;
}

.text-primary-subtle {
  color: var(--web5-primary) !important;
}

/* Ensure all sections use dark backgrounds */
.section-space-top,
.section-space-bottom,
.section-space-sm-bottom,
.section-space-md-bottom,
.section-space-lg-top {
  background: var(--web5-gradient-dark) !important;
}


.testimonial-slider-3 {
  background: var(--web5-gradient-dark) !important;
  border: 1px solid rgba(0, 123, 255, 0.1) !important;
}

.text-dark {
  color: var(--web5-text-light) !important;
}

.text-body {
  color: var(--web5-text-light) !important;
}

.border-light,
.border-light-subtle {
  border-color: rgba(0, 123, 255, 0.1) !important;
}

.shadow,
.shadow-sm,
.shadow-lg {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Card Hover Effects */
.card:hover,
.gradient-border:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  border-color: rgba(0, 123, 255, 0.3) !important;
}

/* Feature Section */


/* Tools Sidebar - Pure Bootstrap Implementation */
.tools-sidebar {
  /* Bootstrap's overflow-auto handles scrolling */
  overflow: auto;
  /* Bootstrap's native height management */
  max-height: 400px;
  /* Bootstrap's native positioning */
  position: relative;
  /* Bootstrap's native z-index */
  z-index: 10;
  /* Bootstrap's native background */
  background: var(--web5-gradient-dark);
  /* Bootstrap's native border */
  border: 1px solid rgba(0, 123, 255, 0.15);
  /* Bootstrap's native border radius */
  border-radius: 12px;
  /* Bootstrap's native padding */
  padding: 1.5rem;
  /* Bootstrap's native margin */
  margin-bottom: 1rem;
  /* Bootstrap's native box shadow */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* iPhone Performance Optimizations */
@supports (-webkit-touch-callout: none) {
  /* Optimize animations for iPhone */
  .gsap-fade-in, .gsap-text-animation, [data-scroll-trigger="true"] {
    will-change: transform, opacity;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  /* Optimize scrolling containers */
  .tools-sidebar, .overflow-auto {
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  /* Reduce motion for better performance */
  .reduced-motion * {
    animation-duration: 0.01ms !important;
    animation-delay: -0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: -0.01ms !important;
  }
  
  /* Optimize touch targets */
  .tool-item, .btn, .nav-link {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Infinite Scroll Optimizations */
.tools-sidebar {
  /* Smooth scrolling for infinite scroll */
  scroll-behavior: smooth;
  /* Optimize for continuous scrolling */
  will-change: scroll-position;
  /* Prevent scroll chaining */
  overscroll-behavior: contain;
  /* Ensure smooth infinite loop */
  transition: scroll-top 0.1s ease-out;
}

/* Ensure cloned items look identical */
.tools-sidebar .tool-item {
  /* Consistent styling for original and cloned items */
  transition: all 0.3s ease;
}

/* Optimize infinite scroll performance */
.tools-sidebar * {
  /* Hardware acceleration for smooth scrolling */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Infinite scroll visual indicators */
.tools-sidebar::before,
.tools-sidebar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  pointer-events: none;
  z-index: 5;
}

.tools-sidebar::before {
  top: 0;
  background: linear-gradient(to bottom, var(--web5-gradient-dark) 0%, transparent 100%);
}

.tools-sidebar::after {
  bottom: 0;
  background: linear-gradient(to top, var(--web5-gradient-dark) 0%, transparent 100%);
}

/* Smooth transition for infinite scroll */
.tools-sidebar {
  position: relative;
  overflow: hidden;
}

.tools-sidebar .tool-item {
  /* Ensure smooth transitions during infinite scroll */
  transition: all 0.3s ease, transform 0.1s ease;
}

/* Product Dropdown Styling */
.navigation-0__menu-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  height: 100%;
}

/* Use Cases Dropdown - Bootstrap Col-3 Layout */
.nav-item:first-child .navigation-0__menu {
  padding: 1.5rem !important;
  background: var(--web5-gradient-dark) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(0, 123, 255, 0.15) !important;
  min-width: 800px !important;
}

.nav-item:first-child .col-3 {
  margin-bottom: 1rem !important;
}

/* Product Dropdown - Bootstrap Col-3 Layout */
.nav-item:nth-child(2) .navigation-0__menu {
  padding: 1.5rem !important;
  background: var(--web5-gradient-dark) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(0, 123, 255, 0.15) !important;
  min-width: 800px !important;
}

.nav-item:nth-child(2) .col-3 {
  margin-bottom: 1rem !important;
}

.nav-item:first-child .navigation-0__menu-link,
.nav-item:nth-child(2) .navigation-0__menu-link {
  height: 120px !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  transition: all 0.3s ease !important;
  border-radius: 8px !important;
  background: var(--web5-gradient-dark) !important;
  border: 1px solid rgba(0, 123, 255, 0.1) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  text-decoration: none !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Glow Animation on Hover */
.nav-item:first-child .navigation-0__menu-link:hover,
.nav-item:nth-child(2) .navigation-0__menu-link:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4) !important;
  border-color: rgba(0, 123, 255, 0.3) !important;
  background: linear-gradient(135deg, var(--web5-gradient-dark) 0%, rgba(0, 123, 255, 0.1) 100%) !important;
}

/* Moving Light Animation */
.nav-item:first-child .navigation-0__menu-link::before,
.nav-item:nth-child(2) .navigation-0__menu-link::before {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -50% !important;
  width: 200% !important;
  height: 200% !important;
  background: linear-gradient(45deg, transparent, rgba(0, 123, 255, 0.1), transparent) !important;
  animation: lightMove 3s linear infinite !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Light Move Animation Keyframes */
@keyframes lightMove {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg) !important;
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg) !important;
  }
}

.nav-item:first-child .navigation-0__menu-img,
.nav-item:nth-child(2) .navigation-0__menu-img {
  color: var(--web5-primary) !important;
  font-size: 32px !important;
  margin-bottom: 0.75rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: auto !important;
  transition: all 0.3s ease !important;
  z-index: 2 !important;
  position: relative !important;
  max-width: 60px !important;
  max-height: 60px !important;
  filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(190deg) brightness(118%) contrast(119%) !important;
}

/* Icon Glow on Hover */
.nav-item:first-child .navigation-0__menu-link:hover .navigation-0__menu-img,
.nav-item:nth-child(2) .navigation-0__menu-link:hover .navigation-0__menu-img {
  color: #4fa8d1 !important;
  filter: drop-shadow(0 0 8px rgba(0, 123, 255, 0.6)) !important;
  transform: scale(1.1) !important;
}

.nav-item:first-child .navigation-0__menu-content {
  padding-top: 0.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
  flex-grow: 1 !important;
}

.nav-item:first-child .navigation-0__menu-title,
.nav-item:nth-child(2) .navigation-0__menu-title {
  text-align: center !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: var(--web5-text-light) !important;
  margin: 0 !important;
  width: 100% !important;
  word-wrap: break-word !important;
  transition: all 0.3s ease !important;
  z-index: 2 !important;
  position: relative !important;
}

/* Text Glow on Hover */
.nav-item:first-child .navigation-0__menu-link:hover .navigation-0__menu-title,
.nav-item:nth-child(2) .navigation-0__menu-link:hover .navigation-0__menu-title {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
  transform: scale(1.05) !important;
}

.navigation-0__menu-title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

/* Ensure all navigation menu items have same height */
.navigation-0__menu-list {
  height: 120px;
  display: flex;
  align-items: stretch;
}

.navigation-0__menu-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: all 0.3s ease;
}

.navigation-0__menu-img {
  max-width: 80px;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}



.tool-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.tool-item:hover {
  background: var(--web5-gradient-accent);
  border-color: rgba(0, 123, 255, 0.2);
  transform: translateX(4px);
}

.tool-item.active {
  background: var(--web5-gradient-primary);
  border-color: var(--web5-blue);
  transform: translateX(8px);
}

.tool-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 8px;
  color: var(--web5-text-light);
  flex-shrink: 0;
  /* Ensure icons are visible */
  min-width: 48px;
  min-height: 48px;
}

/* Ensure iconify icons are properly displayed */
.tool-icon iconify-icon {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  color: var(--web5-primary) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Fallback for missing icons */
.tool-icon:empty::before {
  content: "⚙️";
  font-size: 24px;
  color: var(--web5-primary);
}

.tool-item.active .tool-icon {
  background: var(--web5-blue);
  color: white;
}

.tool-content {
  flex: 1;
}

.tool-title {
  color: var(--web5-text-light);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.tool-desc {
  color: var(--web5-text-light);
  opacity: 0.8;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}

/* Tool Details Panel */
.tool-details {
  background: var(--web5-gradient-dark);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(0, 123, 255, 0.1);
  min-height: 400px;
  max-height: 400px;
  height: 400px;
}

.tool-detail-content {
  display: none;
}

.tool-detail-content.active {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .tools-sidebar {
    /* Pure Bootstrap scrolling - no custom CSS */
    /* Bootstrap's overflow-auto class handles everything */
  }
  
  .tool-details {
    min-height: 400px;
  }
}

/* Color Utility Classes */
.text-blue {
  color: var(--web5-blue) !important;
}

.text-indigo {
  color: var(--web5-indigo) !important;
}

.text-purple {
  color: var(--web5-purple) !important;
}

.bg-blue {
  background: var(--web5-blue) !important;
}

.bg-indigo {
  background: var(--web5-indigo) !important;
}

.bg-purple {
  background: var(--web5-purple) !important;
}

.border-blue {
  border-color: var(--web5-blue) !important;
}

.border-indigo {
  border-color: var(--web5-indigo) !important;
}

.border-purple {
  border-color: var(--web5-purple) !important;
}

.bg-gradient-blue-indigo {
  background: var(--web5-gradient-primary) !important;
}

.bg-gradient-indigo-purple {
  background: var(--web5-gradient-accent) !important;
}

.bg-gradient-blue-indigo-purple {
  background: var(--web5-gradient-primary) !important;
}

.btn-blue {
  background: var(--web5-blue) !important;
  border-color: var(--web5-blue) !important;
  color: white !important;
}

.btn-blue:hover {
  background: var(--web5-blue-dark) !important;
  border-color: var(--web5-blue-dark) !important;
}

.btn-indigo {
  background: var(--web5-indigo) !important;
  border-color: var(--web5-indigo) !important;
  color: white !important;
}

.btn-indigo:hover {
  background: var(--web5-indigo-dark) !important;
  border-color: var(--web5-indigo-dark) !important;
}

.btn-purple {
  background: var(--web5-purple) !important;
  border-color: var(--web5-purple) !important;
  color: white !important;
}

.btn-purple:hover {
  background: var(--web5-purple-dark) !important;
  border-color: var(--web5-purple-dark) !important;
}

.btn-outline-blue {
  background: transparent !important;
  border-color: var(--web5-blue) !important;
  color: var(--web5-blue) !important;
}

.btn-outline-blue:hover {
  background: var(--web5-blue) !important;
  color: white !important;
}

.btn-outline-indigo {
  background: transparent !important;
  border-color: var(--web5-indigo) !important;
  color: var(--web5-indigo) !important;
}

.btn-outline-indigo:hover {
  background: var(--web5-indigo) !important;
  color: white !important;
}

.btn-outline-purple {
  background: transparent !important;
  border-color: var(--web5-purple) !important;
  color: var(--web5-purple) !important;
}

.btn-outline-purple:hover {
  background: var(--web5-purple) !important;
  color: white !important;
}

.badge.bg-blue {
  background: var(--web5-blue) !important;
}

.badge.bg-indigo {
  background: var(--web5-indigo) !important;
}

.badge.bg-purple {
  background: var(--web5-purple) !important;
}

.progress-bar.bg-blue {
  background: var(--web5-blue) !important;
}

.progress-bar.bg-indigo {
  background: var(--web5-indigo) !important;
}

.progress-bar.bg-purple {
  background: var(--web5-purple) !important;
}

.form-control:focus {
  border-color: var(--web5-blue) !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25) !important;
}

.form-check-input:checked {
  background-color: var(--web5-blue) !important;
  border-color: var(--web5-blue) !important;
}

a.text-blue:hover {
  color: var(--web5-blue-dark) !important;
}

a.text-indigo:hover {
  color: var(--web5-indigo-dark) !important;
}

a.text-purple:hover {
  color: var(--web5-purple-dark) !important;
}

.hover\:text-blue:hover {
  color: var(--web5-blue) !important;
}

.hover\:text-indigo:hover {
  color: var(--web5-indigo) !important;
}

.hover\:text-purple:hover {
  color: var(--web5-purple) !important;
}

.hover\:bg-blue:hover {
  background: var(--web5-blue) !important;
}

.hover\:bg-indigo:hover {
  background: var(--web5-indigo) !important;
}

.hover\:bg-purple:hover {
  background: var(--web5-purple) !important;
}

.hover\:border-blue:hover {
  border-color: var(--web5-blue) !important;
}

.hover\:border-indigo:hover {
  border-color: var(--web5-indigo) !important;
}

.hover\:border-purple:hover {
  border-color: var(--web5-purple) !important;
}

.bg-blue-subtle {
  background: var(--web5-blue-subtle) !important;
}

.bg-indigo-subtle {
  background: var(--web5-indigo-subtle) !important;
}

.bg-purple-subtle {
  background: var(--web5-purple-subtle) !important;
}

.text-blue-opacity-50 {
  color: rgba(0, 123, 255, 0.5) !important;
}

.text-indigo-opacity-50 {
  color: rgba(102, 16, 242, 0.5) !important;
}

.text-purple-opacity-50 {
  color: rgba(111, 66, 193, 0.5) !important;
}

.border-blue-opacity-25 {
  border-color: rgba(0, 123, 255, 0.25) !important;
}

.border-indigo-opacity-25 {
  border-color: rgba(102, 16, 242, 0.25) !important;
}

.border-purple-opacity-25 {
  border-color: rgba(111, 66, 193, 0.25) !important;
}

/* Use Cases Section Cards - Enhanced Styling */
.usage-section-1 .bg-dark {
  background: var(--web5-gradient-dark) !important;
  border: 1px solid rgba(0, 123, 255, 0.15) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
  padding: 2rem !important;
  min-height: 200px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.usage-section-1 .bg-dark:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 30px rgba(0, 123, 255, 0.15) !important;
  border-color: rgba(0, 123, 255, 0.3) !important;
}

.usage-section-1 .bg-dark .fs-28 {
  margin-bottom: 1rem !important;
  color: var(--web5-primary) !important;
}

.usage-section-1 .bg-dark h6 {
  margin-bottom: 1rem !important;
  font-weight: 600 !important;
}

.usage-section-1 .bg-dark p {
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

/* Consistent Box Styling for All Sections */
.section-space-y .bg-dark,
.section-space-md-y .bg-dark,
.section-space-lg-y .bg-dark {
  background: var(--web5-gradient-dark) !important;
  border: 1px solid rgba(0, 123, 255, 0.15) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
  padding: 1.5rem !important;
}

.section-space-y .bg-dark:hover,
.section-space-md-y .bg-dark:hover,
.section-space-lg-y .bg-dark:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(0, 123, 255, 0.15) !important;
  border-color: rgba(0, 123, 255, 0.3) !important;
}



/* Mobile Footer Responsive */
@media (max-width: 575.98px) {
  .footer-section .col-6 {
    margin-bottom: 1.5rem !important;
  }
  
  .footer-section h6 {
    font-size: 16px !important;
    margin-bottom: 1rem !important;
  }
  
  .footer-section .list {
    gap: 0.5rem !important;
  }
  
  .footer-section .list li a {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
}

/* Small Mobile Navbar Fixes - Removed - Now handled by mobile-nav.css */

/* Extra Small Mobile Fixes - Removed - Now handled by mobile-nav.css */