:root {
  --primary: #00ff9d;
  /* Neon Green */
  --primary-hover: #00cc7d;
  --secondary: #00d2ff;
  /* Cyan Blue */
  --dark-bg: #0a0b0d;
  /* Almost black */
  --dark-card: #151619;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --glass-bg: rgba(21, 22, 25, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-primary: linear-gradient(135deg, #00ff9d 0%, #00d2ff 100%);
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

.text-gradient-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navbar */
.navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
}

.bg-dark-glass {
  background: transparent;
  /* Fix for mobile flickering */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.bg-dark-glass-strong {
  background: rgba(10, 11, 13, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--primary);
  box-shadow: 0 10px 30px -10px rgba(0, 255, 157, 0.3);
}

.blur-backdrop {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.nav-link {
  color: var(--text-secondary) !important;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  font-weight: 500;
  /* Added weight for better readability */
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary) !important;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
  /* Subtle glow on hover */
}

.btn-primary {
  background: var(--primary);
  border: none;
  color: #000;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 157, 0.4);
}

.btn-glow {
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 10%, rgba(0, 255, 157, 0.1) 0%, transparent 50%);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* Cards */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 157, 0.1);
  border-radius: 12px;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Market Ticker */
.market-ticker-wrap {
  background: var(--dark-card);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  overflow: hidden;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 3rem;
  color: var(--text-primary);
  font-weight: 500;
}

.text-success-custom {
  color: #00ff9d;
}

.text-danger-custom {
  color: #ff4d4d;
}

/* Footer */
.bg-darker {
  background-color: #050607;
}

.border-white-10 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

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

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

.social-links a {
  transition: color 0.3s ease;
}

/* Forms */
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.8rem 1rem;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(0, 255, 157, 0.25);
  color: var(--text-primary);
}

.form-control::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--dark-bg);
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-link {
    padding: 0.8rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-section {
    padding-top: 140px;
  }

  /* Ensure navbar stays visible and fixed on mobile */
  .navbar {
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 1050;
  }
}