/* Futuristic Navigation Styles - Reduced Text Size */
.tm-navbar {
  background: rgba(10, 14, 41, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 231, 247, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  padding: 10px 0; /* Reduced padding */
  transition: all 0.3s ease;
}

.tm-navbar.scrolled {
  padding: 5px 0; /* Reduced padding when scrolled */
  background: rgba(10, 14, 41, 0.98) !important;
}

/* Brand/Logo Styling - 50% smaller */
.navbar-brand {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.9rem !important; /* Reduced from 1.8rem */
  background: linear-gradient(45deg, #ff6b35, #0ae7f7, #9d4edd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding: 6px 12px; /* Reduced padding */
  border-radius: 6px; /* Slightly smaller radius */
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px; /* Slightly reduced letter spacing */
}

.navbar-brand::before {
  content: '';
  position: absolute;
  top: -1px; /* Reduced border */
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, #ff6b35, #0ae7f7, #9d4edd, #ff6b35);
  border-radius: 7px; /* Slightly smaller */
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-size: 400%;
  animation: gradientShift 3s ease infinite;
}

.navbar-brand::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 41, 0.9);
  border-radius: 6px; /* Slightly smaller */
  z-index: -1;
}

/* Navigation Links - 50% smaller */
.navbar-nav {
  gap: 3px; /* Reduced gap */
}

.nav-link.tm-nav-link {
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 0.9rem !important; /* Reduced from 1rem */
  color: #e0e0e0 !important;
  padding: 6px 12px !important; /* Reduced padding */
  margin: 0 3px; /* Reduced margin */
  border-radius: 4px; /* Smaller radius */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.8px; /* Reduced letter spacing */
}

.nav-link.tm-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(10, 231, 247, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-link.tm-nav-link:hover::before {
  left: 100%;
}

.nav-link.tm-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px; /* Thinner line */
  background: linear-gradient(90deg, #ff6b35, #0ae7f7);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link.tm-nav-link:hover::after {
  width: 70%; /* Slightly smaller hover effect */
}

.nav-link.tm-nav-link:hover {
  color: #fff !important;
  background: rgba(10, 231, 247, 0.1);
  transform: translateY(-1px); /* Smaller lift effect */
  box-shadow: 0 3px 8px rgba(10, 231, 247, 0.3); /* Smaller shadow */
}

/* Active State */
.nav-link.tm-nav-link.active {
  color: #0ae7f7 !important;
  background: rgba(10, 231, 247, 0.15);
  box-shadow: 0 0 10px rgba(10, 231, 247, 0.4); /* Smaller glow */
}

.nav-link.tm-nav-link.active::after {
  width: 70%; /* Smaller active underline */
  background: #0ae7f7;
}

/* Special Styling for Signal Link */
.nav-link.tm-nav-link.signal-link {
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: #ff6b35 !important;
  font-weight: 700;
  animation: signalPulse 2s infinite;
}

.nav-link.tm-nav-link.signal-link:hover {
  background: rgba(255, 107, 53, 0.2);
  box-shadow: 0 3px 8px rgba(255, 107, 53, 0.4); /* Smaller shadow */
}

@keyframes signalPulse {
  0%, 100% {
    box-shadow: 0 0 3px rgba(255, 107, 53, 0.3);
  }
  50% {
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.6); /* Smaller pulse */
  }
}

/* Mobile Menu Toggle */
.navbar-toggler {
  border: 1px solid rgba(10, 231, 247, 0.3) !important;
  padding: 4px 8px; /* Reduced padding */
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background: rgba(10, 231, 247, 0.1);
  box-shadow: 0 0 6px rgba(10, 231, 247, 0.3); /* Smaller shadow */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(10, 231, 247, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 20px; /* Smaller icon */
  height: 20px;
}

/* Mobile Menu */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(10, 14, 41, 0.98);
    border-radius: 8px; /* Smaller radius */
    margin-top: 10px; /* Reduced margin */
    padding: 15px; /* Reduced padding */
    border: 1px solid rgba(10, 231, 247, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); /* Smaller shadow */
  }
  
  .nav-link.tm-nav-link {
    margin: 3px 0; /* Reduced margin */
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.6rem !important; /* Slightly larger for mobile */
    padding: 8px 12px !important; /* Adjusted padding */
  }
  
  .navbar-nav {
    gap: 0;
  }
}

/* Navigation Icons */
.nav-icon {
  display: inline-block;
  margin-right: 4px; /* Reduced margin */
  font-size: 0.55rem; /* Reduced icon size */
  transition: transform 0.3s ease;
}

.nav-link.tm-nav-link:hover .nav-icon {
  transform: scale(1.1); /* Smaller scale */
}

/* Cyber Border Effect */
.cyber-border::before {
  content: '';
  position: absolute;
  top: -1px; /* Reduced border */
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, #ff6b35, #0ae7f7, #9d4edd, #ff6b35);
  border-radius: 7px; /* Smaller radius */
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-size: 400%;
  animation: gradientShift 3s ease infinite;
}

/* Floating Particles - Smaller */
.nav-particle {
  position: absolute;
  width: 1px; /* Smaller particles */
  height: 1px;
  background: #0ae7f7;
  border-radius: 50%;
  animation: navParticleFloat 6s infinite linear;
  opacity: 0;
}

@keyframes navParticleFloat {
  0% {
    transform: translateY(100%) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100%) translateX(10px); /* Smaller movement */
    opacity: 0;
  }
}

/* Container adjustments for smaller nav */
.container {
  max-width: 100%;
}

.navbar-expand-md .navbar-nav .nav-link {
  padding-right: 8px; /* Reduced padding */
  padding-left: 8px;
}