/* CSS-only navigation functionality */

/* Smooth scrolling for the entire site */
html {
  scroll-behavior: smooth;
}

/* Hide the checkbox input visually but keep it accessible */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hamburger menu styles */
.hamburger {
  display: none;
  cursor: pointer;
}

/* Style for the hamburger menu bars */
.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: 0.3s;
}

/* Mobile navigation styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    width: 100%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    z-index: 1000;
    display: none;
  }

  .nav-links li {
    margin: 10px 0;
  }

  /* CSS toggle for mobile menu using the checkbox hack */
  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  /* Animate hamburger into X when active */
  .nav-toggle:checked ~ .hamburger .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .nav-toggle:checked ~ .hamburger .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .hamburger .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* Enhanced navigation styling */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

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

/* Active page indicator */
.nav-links a.active,
.nav-links li.active a {
  color: var(--accent-color);
}

.nav-links a.active::after,
.nav-links li.active a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
}

/* Special styling for the contact button */
.nav-links a.nav-btn {
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 8px 15px;
  border-radius: var(--border-radius, 4px);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-links a.nav-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

/* CSS-only tab system */
.tabs {
  position: relative;
  width: 100%;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color, #ddd);
  position: relative;
}

.tab-nav input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.tab-nav label.tab-btn {
  padding: 10px 20px;
  cursor: pointer;
  margin-right: 5px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  color: var(--text-secondary, #777);
}

.tab-nav input[type="radio"]:checked + label.tab-btn {
  color: var(--primary-color, #2a3f5f);
  border-bottom: 2px solid var(--primary-color, #2a3f5f);
}

.tab-content .tab-pane {
  display: none;
  padding: 20px 0;
}

/* Show active tab content */
#tab-ltes:checked ~ .tab-content #ltes,
#tab-securemonitor:checked ~ .tab-content #securemonitor,
#tab-quantumshield:checked ~ .tab-content #quantumshield {
  display: block;
}

/* Make tab panes visible with smooth transitions */
.tab-pane {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
