/* Base Variables */
:root {
  --primary-color: #0a1521;
  --secondary-color: #1c2a3b;
  --accent-color: #ffb940;
  --text-color: #ffffff;
  --text-color-muted: #c0c0c0;
  --background-color: rgba(10, 21, 33, 0.85);
  --card-background: rgba(28, 42, 59, 0.7);
  --card-background-alt: rgba(28, 42, 59, 0.5);
  --border-color: rgba(255, 255, 255, 0.1);
  --transition-speed: 0.3s;
  --header-height: 54px;
  --mobile-header-height: 60px;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 120%;
  height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--primary-color);
  font-weight: 400;
  min-height: 100%;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bebas Neue", sans-serif;
  margin-bottom: 0.5em;
  color: var(--accent-color);
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
}
h3 {
  font-size: 1.6rem;
  font-weight: 600;
}
h4 {
  font-size: 1.4rem;
  font-weight: 600;
}
h5 {
  font-size: 1.2rem;
  font-weight: 600;
}
h6 {
  font-size: 1rem;
  font-weight: 600;
}

p,
li {
  margin-bottom: 1em;
  font-size: 0.99rem;
  font-weight: 400;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 21, 33, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  padding: 0.45rem 1.2rem;
  height: var(--header-height);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 200px;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 700px;
  margin: 0 1rem;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  min-width: 300px;
  justify-content: flex-end;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.63rem;
  text-decoration: none;
}

.logo-image {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box; /* Fix: Include border in total size */
  flex-shrink: 0; /* Fix: Prevent shrinking */
}

/* Fix: Add styles for picture element */
.logo-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.logo-image img {
  width: 100%; /* Fix: Changed from 90% to 100% */
  height: 100%; /* Fix: Changed from 90% to 100% */
  object-fit: contain;
  object-position: center;
  display: block; /* Fix: Ensure block display to remove inline spacing */
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  font-family: "Bebas Neue", sans-serif;
  color: var(--accent-color);
  letter-spacing: 1px;
  line-height: 1.2; /* Fix: Adjusted from 1 to 1.2 for better alignment */
  display: flex;
  align-items: center;
}

/* Navigation Styles */
.header-center {
  display: flex;
  gap: 1.4rem;
}

.header-center a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-speed) ease;
  position: relative;
  white-space: nowrap;
  text-align: center;
}

.header-center a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width var(--transition-speed);
  position: absolute;
  left: 0;
  bottom: -5px;
}

.header-center a:hover {
  color: var(--accent-color);
  transform: translateY(-1px);
}

.header-center a:hover::after,
.header-center a.active::after {
  width: 100%;
}

.header-center a.active {
  color: var(--accent-color);
}

/* Legacy nav selector for compatibility */
nav {
  display: flex;
  gap: 1.8rem;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.08rem;
  transition: color var(--transition-speed) ease;
  position: relative;
}

nav a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width var(--transition-speed);
  position: absolute;
  left: 0;
  bottom: -5px;
}

nav a:hover {
  color: var(--accent-color);
  transform: translateY(-1px);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a.active {
  color: var(--accent-color);
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.auth-button {
  background: transparent;
  border: 2px solid #4a90e2;
  color: #4a90e2;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 70px;
  white-space: nowrap;
}

.auth-button:hover {
  background-color: #4a90e2;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.login-button {
  background: transparent;
  border-color: #5ba3f5;
  color: #5ba3f5;
}

.login-button:hover {
  background-color: #5ba3f5;
  color: white;
}


/* Button Styles */
.button-group {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

/* Standardized button base styles */
.nav-button,
.cta-button,
.slide-cta-button,
.dropdown-toggle {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.45rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.75rem;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  white-space: nowrap;
}

/* CTA button specific sizing */
.cta-button {
  padding: 0.45rem 1.2rem;
  font-size: 0.8rem;
}

/* Slide CTA button specific sizing */
.slide-cta-button {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

/* Hover state for all buttons */
.nav-button:hover,
.cta-button:hover,
.slide-cta-button:hover,
.dropdown-toggle:hover {
  background-color: #ffcb66;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.5);
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  gap: 0.3rem;
  opacity: 1;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
}

.dropdown-arrow {
  font-size: 0.6rem;
  transition: transform var(--transition-speed);
}

.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  background-color: rgba(10, 21, 33, 0.95);
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1001;
}

.dropdown.active .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 0.85rem 1.4rem;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  transition: background-color var(--transition-speed);
}

.dropdown-content a:hover {
  background-color: rgba(255, 185, 64, 0.1);
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--primary-color);
  position: relative;
  padding-top: var(--header-height);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/simbahero.png");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 0;
}

/* Content Slider */
.content-slider {
  position: relative;
  width: 100%;
  flex: 1;
  z-index: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  padding: 20px;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* Ensure first slide is visible by default as fallback */
.slide:first-child {
  display: block;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide.active {
  display: block;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-content {
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background-color: rgba(10, 21, 33, 0.95);
  border-radius: 20px;
  height: 100%;
  padding: 1.35rem;
  overflow: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

/* Slider Content Layout */
.slide-image-container {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.9rem;
}

.image-container {
  width: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.9rem;
}

.slide-image-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.slide-text {
  flex: 1;
  padding: 0.9rem;
  overflow: auto;
}

/* Slider Controls */
.slider-controls {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 0;
  background-color: rgba(10, 21, 33, 0.95);
  margin-top: auto;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
}

.slider-dot {
  width: 13.5px;
  height: 13.5px;
  border-radius: 50%;
  background-color: var(--text-color);
  opacity: 0.5;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.slider-dot.active {
  opacity: 1;
  transform: scale(1.1);
  background-color: var(--accent-color);
}

.slider-dot:hover {
  opacity: 0.8;
  transform: scale(1.2);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.45rem;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 185, 64, 0.2);
}

.mobile-menu-toggle:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    rgba(10, 21, 33, 0.98) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 185, 64, 0.1);
  background: rgba(255, 185, 64, 0.03);
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--accent-color);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.mobile-nav-logo:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.mobile-nav-logo .logo-image {
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-nav-logo .logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-nav-close {
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0;
  color: var(--text-color);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 185, 64, 0.2);
}

.mobile-nav-close:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.mobile-nav-menu {
  flex: 1;
  padding: 2.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.008) 100%
  );
  border-radius: 16px 16px 0 0;
  margin-top: 1rem;
}

.mobile-nav-group {
  margin-bottom: 1.2rem;
}

.mobile-nav-group-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 2rem 0.4rem;
  margin-bottom: 0.3rem;
  opacity: 0.9;
  border-bottom: 2px solid rgba(255, 185, 64, 0.2);
  position: relative;
}

.mobile-nav-group-title::before {
  content: "";
  position: absolute;
  left: 2rem;
  bottom: -2px;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
  border-radius: 1px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  padding: 0.6rem 2rem;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
  border-radius: 0 12px 12px 0;
  margin: 0.05rem 0;
}

.mobile-nav-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 185, 64, 0.12) 0%,
    rgba(255, 185, 64, 0.06) 100%
  );
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}

.mobile-nav-item::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-nav-item:hover::before,
.mobile-nav-item:focus::before {
  width: 100%;
}

.mobile-nav-item:hover::after,
.mobile-nav-item:focus::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.2);
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
  color: var(--accent-color);
  border-left-color: var(--accent-color);
  background: rgba(255, 185, 64, 0.08);
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(255, 185, 64, 0.15);
}

.mobile-nav-item span {
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Hide FAQ section on mobile only */
@media (max-width: 768px) {
  .mobile-hide-faq {
    display: none !important;
  }

  .mobile-hide-specs-cta {
    display: none !important;
  }

  .mobile-hide-wallet-text {
    display: none !important;
  }

  .mobile-hide-wallet-buttons {
    display: none !important;
  }
}

/* Animation for menu items */
.mobile-nav-overlay.active .mobile-nav-item {
  animation: slideInFromLeft 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.mobile-nav-overlay.active .mobile-nav-item:nth-child(1) {
  animation-delay: 0.1s;
}
.mobile-nav-overlay.active .mobile-nav-item:nth-child(2) {
  animation-delay: 0.15s;
}
.mobile-nav-overlay.active .mobile-nav-item:nth-child(3) {
  animation-delay: 0.2s;
}
.mobile-nav-overlay.active .mobile-nav-item:nth-child(4) {
  animation-delay: 0.25s;
}
.mobile-nav-overlay.active .mobile-nav-item:nth-child(5) {
  animation-delay: 0.3s;
}
.mobile-nav-overlay.active .mobile-nav-item:nth-child(6) {
  animation-delay: 0.35s;
}

.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(1)
  .mobile-nav-item:nth-child(2) {
  animation-delay: 0.1s;
}
.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(1)
  .mobile-nav-item:nth-child(3) {
  animation-delay: 0.15s;
}
.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(1)
  .mobile-nav-item:nth-child(4) {
  animation-delay: 0.2s;
}

.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(2)
  .mobile-nav-item:nth-child(2) {
  animation-delay: 0.25s;
}
.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(2)
  .mobile-nav-item:nth-child(3) {
  animation-delay: 0.3s;
}

.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(3)
  .mobile-nav-item:nth-child(2) {
  animation-delay: 0.35s;
}
.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(3)
  .mobile-nav-item:nth-child(3) {
  animation-delay: 0.4s;
}
.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(3)
  .mobile-nav-item:nth-child(4) {
  animation-delay: 0.45s;
}
.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(3)
  .mobile-nav-item:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced Responsive Breakpoints */

/* Small Mobile Devices */
@media (max-width: 480px) {
  /* Extra small mobile optimizations */
  html {
    font-size: 100%; /* Reduce base font size for very small screens */
  }
  
  /* Ensure header right is visible */
  .header-right {
    min-width: auto !important;
    gap: 0.5rem;
  }
  
  /* Ensure mobile menu toggle is always visible */
  .mobile-menu-toggle {
    display: flex !important;
    position: relative;
    z-index: 1002;
  }

  .logo {
    font-size: 1rem;
  }

  .logo-image {
    width: 24px;
    height: 24px;
  }

  /* Typography for small mobile */
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  p,
  li {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Touch targets optimization */
  .slider-dot {
    width: 16px;
    height: 16px;
    margin: 0 8px;
  }

  /* Improved button spacing */
  .button-group a {
    padding: 12px 16px;
    font-size: 0.8rem;
    margin: 0 4px;
  }

  /* Pool metrics cards - Mobile optimization */
  .pool-metrics .metric-card {
    padding: 12px;
    margin: 8px 0;
  }

  /* Performance Metrics Mobile Layout - Enhanced specificity */
  #performanceMetrics > div[style] {
    padding: 15px !important;
    gap: 15px !important;
    flex-direction: column !important;
    display: flex !important;
  }

  #performanceMetrics > div[style] > div:first-child {
    flex: none !important;
    margin-bottom: 15px !important;
  }

  /* Mobile grid layout for metrics cards - Enhanced specificity */
  #performanceMetrics div[style*="grid-template-columns"],
  #performanceMetrics div[style*="display: grid"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    grid-template-columns: none !important;
  }

  /* Mobile slide titles - center alignment for small screens */
  .slide-text h1 {
    text-align: center !important;
    line-height: 1.1;
  }

  /* Image responsiveness for small mobile */
  .image-container img {
    max-height: 200px;
    object-fit: contain;
  }

  .slide-image-container {
    flex-shrink: 0;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  /* Reset overflow for mobile */
  html,
  body {
    overflow-y: auto;
    height: auto;
  }

  /* Mobile Header */
  header {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem;
    height: auto;
    min-height: var(--mobile-header-height);
  }

  .header-left {
    flex-shrink: 0;
  }

  .header-center {
    display: none;
  }

  .header-right .auth-buttons {
    display: none;
  }

  .header-right .dropdown {
    display: none;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo-image {
    width: 28px;
    height: 28px;
  }

  /* Performance Metrics Mobile Layout - Enhanced for tablets with higher specificity */
  #performanceMetrics > div[style] {
    padding: 20px !important;
    gap: 20px !important;
    flex-direction: column !important;
    min-height: auto !important;
    display: flex !important;
  }

  #performanceMetrics > div[style] > div:first-child {
    flex: none !important;
    margin-bottom: 20px !important;
  }

  /* Enhanced mobile grid layout with higher specificity */
  #performanceMetrics div[style*="grid-template-columns"],
  #performanceMetrics div[style*="display: grid"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    grid-template-columns: none !important;
  }

  /* Performance metric cards mobile styling with higher specificity */
  #performanceMetrics div[style*="backgroundColor"],
  #performanceMetrics div[style*="background-color"] {
    padding: 16px !important;
    margin-bottom: 12px !important;
    border-radius: 8px !important;
    width: 100% !important;
    flex: none !important;
  }

  /* Force mobile layout persistence - override any inline grid styles */
  #performanceMetrics * {
    grid-template-columns: none !important;
  }

  #performanceMetrics > div {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Mobile slide titles - center alignment */
  .slide-text h1 {
    text-align: center !important;
    line-height: 1.2;
  }

  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
  }
  
  /* Enhanced mobile navigation hover effects */
  .mobile-nav-item {
    transition: all 0.3s ease !important;
  }
  
  .mobile-nav-item:hover {
    color: var(--accent-color) !important;
    background: rgba(255, 185, 64, 0.08) !important;
    transform: translateX(8px) !important;
  }

  /* Hide old mobile navigation completely */
  nav {
    display: none !important;
  }

  .button-group {
    display: none !important;
  }

  /* Mobile auth items styling */
  .auth-item {
    background: rgba(74, 144, 226, 0.1) !important;
    border: 1px solid rgba(74, 144, 226, 0.3) !important;
    border-radius: 6px !important;
    margin: 0.2rem 0 !important;
  }

  .auth-item:hover {
    background: rgba(74, 144, 226, 0.2) !important;
    border-color: #4a90e2 !important;
  }


  /* Show mobile nav overlay only on mobile */
  .mobile-nav-overlay {
    display: block !important;
  }
  
  .mobile-nav-overlay.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  /* Mobile Hero Section */
  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: var(--mobile-header-height);
    padding-bottom: 60px;
  }

  /* Mobile Content Slider */
  .content-slider {
    height: auto;
    min-height: calc(100vh - var(--mobile-header-height) - 60px);
    padding-bottom: 60px;
  }

  .slide {
    position: relative;
    height: auto;
    opacity: 1;
    visibility: visible;
    z-index: 1;
  }

  .slide:not(.active) {
    display: none;
    opacity: 0;
    visibility: hidden;
  }

  .slide.active {
    z-index: 2;
  }

  .slide-content {
    flex-direction: column;
    height: auto;
    min-height: 200px;
  }

  .slide-image-container {
    max-width: 100%;
  }

  /* Mobile Slider Controls */
  .slider-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  /* Mobile Typography */
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.62rem;
  }
  h3 {
    font-size: 1.26rem;
  }
  p,
  li {
    font-size: 0.9rem;
  }

  /* Enhanced touch targets for mobile */
  nav a {
    padding: 16px 20px; /* Minimum 44px touch target */
    display: block;
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
  }

  nav a:hover,
  nav a:focus {
    background-color: rgba(255, 185, 64, 0.1);
  }

  /* Mobile menu improvements */
  .mobile-menu-toggle {
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    transition:
      transform 0.2s ease,
      color 0.2s ease;
  }

  .mobile-menu-toggle:active {
    transform: scale(0.95);
  }

  .mobile-menu-toggle.menu-open {
    transform: rotate(90deg);
  }

  /* Dropdown touch optimization */
  .dropdown-toggle {
    padding: 16px 20px;
    min-height: 44px;
  }
}

/* Medium Screens */
@media (min-width: 1025px) and (max-width: 1400px) {
  .header-center {
    gap: 1.2rem;
  }
  
  .header-center a {
    font-size: 0.9rem;
  }
  
  .header-right {
    gap: 0.6rem;
  }
  
  .dropdown-toggle {
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
  }
}

/* Tablet Devices */
@media (min-width: 769px) and (max-width: 1024px) {
  html {
    font-size: 110%;
  }

  /* Tablet header adjustments */
  header {
    padding: 0.6rem 1rem;
  }

  .logo {
    font-size: 1.4rem;
  }
  
  .header-center {
    gap: 1rem;
    margin: 0 0.5rem;
  }
  
  .header-center a {
    font-size: 0.85rem;
  }
  
  .header-right {
    gap: 0.5rem;
    min-width: 280px;
  }
  
  .dropdown-toggle {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
  }
  
  .auth-button {
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    min-width: 65px;
  }

  /* Typography for tablets */
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  /* Navigation spacing */
  nav a {
    padding: 12px 16px;
    margin: 0 8px;
  }

  /* Pool metrics layout for tablets */
  .pool-metrics {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  /* Image optimization for tablets */
  .image-container img {
    max-height: 300px;
    object-fit: contain;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Enhanced typography for large screens */
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2.2rem;
  }

  /* Better spacing for large screens */
  .pool-metrics {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
  }
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Pool ID Widget */
.pool-id-container {
  position: fixed;
  top: calc(var(--header-height) + 20px);
  left: 20px;
  z-index: 999;
  background: rgba(10, 21, 33, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  width: auto;
  max-width: 210px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.pool-id-container:hover {
  opacity: 1;
}

.pool-id-toggle {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  border-radius: 8px;
}

.pool-id-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-color);
}

.pool-id-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 185, 64, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.pool-id-toggle:hover::before {
  left: 100%;
}

.pool-id-toggle:hover {
  color: #ffa500;
  text-shadow: 0 0 8px rgba(255, 165, 0, 0.3);
}

.pool-id-toggle-icon {
  margin-left: 8px;
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.pool-id-toggle[aria-expanded="true"] .pool-id-toggle-icon {
  transform: rotate(180deg);
}

.pool-id-section {
  background: rgba(28, 42, 59, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.pool-id-section.expanded {
  max-height: 100px;
  opacity: 1;
  padding: 8px;
}

.pool-id-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.pool-id-content:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 185, 64, 0.3);
}

.pool-id-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1px;
}

.pool-id-icon {
  width: 14px;
  height: 14px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a1521;
  font-size: 0.55rem;
  font-weight: bold;
  flex-shrink: 0;
}

.pool-id-label {
  font-weight: 500;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.pool-id-copy-hint {
  margin-left: auto;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.pool-id-content:hover .pool-id-copy-hint {
  opacity: 1;
  color: var(--accent-color);
}

.pool-id-value {
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-all;
  line-height: 1.1;
  background: rgba(0, 0, 0, 0.2);
  padding: 3px 5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 400;
  letter-spacing: 0.2px;
}

.pool-id-copied {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pool-id-copied.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.02);
}

.pool-id-copied::before {
  content: "✓";
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .pool-id-container {
    top: calc(var(--mobile-header-height) + 10px);
    left: 10px;
    max-width: 180px;
  }

  .pool-id-toggle {
    font-size: 0.7rem;
    padding: 6px 10px;
  }

  .pool-id-section.expanded {
    padding: 6px;
    max-height: 90px;
  }

  .pool-id-content {
    padding: 5px;
    gap: 3px;
  }

  .pool-id-label {
    font-size: 0.65rem;
  }

  .pool-id-value {
    font-size: 0.6rem;
    padding: 3px 5px;
  }

  .pool-id-copy-hint {
    font-size: 0.5rem;
  }
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.floating-button {
  padding: 9px 18px;
  background-color: rgba(255, 165, 0, 0.9);
  color: #0a1521;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  text-align: center;
  min-width: 105px;
}

.floating-button:hover {
  transform: translateY(-5px);
  background-color: #ffa500;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Mobile navigation styles */
.mobile-only-nav {
  display: none !important;
}

@media (max-width: 768px) {
  /* Hide floating buttons on mobile */
  .floating-buttons {
    display: none;
  }

  /* Show mobile-only nav items */
  .mobile-only-nav {
    display: block !important;
    padding: 10px 15px;
    background-color: rgba(255, 165, 0, 0.9);
    color: #0a1521 !important;
    border-radius: 4px;
    margin: 5px 0;
    text-align: center;
    font-weight: bold;
  }

  /* Existing mobile menu styles with updates */
  nav.mobile-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: rgba(10, 21, 33, 0.95);
  }

  nav a {
    width: 100%;
    text-align: center;
  }

  .mobile-only-nav:hover {
    background-color: #ffa500;
    transform: translateY(-2px);
  }
}

/* Skip Navigation Link */
.skip-nav {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 8px;
  text-decoration: none;
  font-weight: bold;
  z-index: 10000;
}

.skip-nav:focus {
  top: 0;
}

/* Lazy loaded image animation */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy-loaded {
  opacity: 1;
}

/* Explore Cardano dropdown styles */
.explore-content {
  min-width: 200px;
}

.explore-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.explore-item:hover {
  background: rgba(255, 185, 64, 0.1);
  transform: translateX(5px);
}

.explore-item img {
  border-radius: 4px;
  flex-shrink: 0;
}

.explore-item span {
  font-weight: 500;
}

/* Introduction slide font size reduction */
#introduction .slide-text {
  font-size: 0.8rem;
}

#introduction .slide-text h1 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

#introduction .slide-text h2 {
  font-size: 1.2rem;
}

#introduction .slide-text h3 {
  font-size: 1.1rem;
}

/* Mobile Tab Interface Enhancements */
@media (max-width: 768px) {
  /* Enhanced mobile tab button styling */
  .mobile-tab-button {
    position: relative;
    overflow: hidden;
  }

  .mobile-tab-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 185, 64, 0.2),
      transparent
    );
    transition: left 0.5s ease;
  }

  .mobile-tab-button:hover::before {
    left: 100%;
  }

  /* Mobile tab content fade-in animation */
  .mobile-tab-content {
    animation: fadeInUp 0.3s ease-out;
  }

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

  /* Enhanced mobile metric cards */
  .mobile-metric-card {
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .mobile-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 185, 64, 0.2);
    border-color: rgba(255, 185, 64, 0.3);
  }

  /* Mobile-specific performance metrics adjustments */
  #performanceMetrics {
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }

  /* Force mobile layout for performance metrics container */
  #performanceMetrics > div[style*="display: flex"] {
    display: flex !important;
    flex-direction: column !important;
    padding: 15px !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* Remove sidebar completely on mobile */
  #performanceMetrics div[style*="width: 220px"],
  #performanceMetrics div[style*="flex: 0 0 220px"] {
    display: none !important;
  }

  /* Smooth scrolling for mobile tab content */
  .mobile-tab-container {
    scroll-behavior: smooth;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .mobile-tab-button {
    font-size: 0.8rem !important;
    padding: 10px 6px !important;
  }

  .mobile-metric-card {
    padding: 12px !important;
  }

  .mobile-metric-card h4 {
    font-size: 0.75rem !important;
  }

  .mobile-metric-card .metric-value {
    font-size: 1.1rem !important;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .mobile-tab-content {
    animation: none !important;
  }

  .mobile-tab-button::before {
    transition: none !important;
  }
}
