/* Top Bar Styles */
.top-bar {
  background-color: var(--accent);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: var(--font-size-sm);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001; /* Above navbar */
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: var(--spacing-md);
}

.top-bar-link {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.top-bar-link:hover {
  opacity: 0.8;
  color: var(--white);
}

.top-bar-link i {
  font-size: 0.9rem;
}

.top-bar-social {
  display: flex;
  gap: var(--spacing-sm);
}

.top-bar-social .social-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.top-bar-social .social-icon:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Navbar - 2025 Futuristic Design */
.navbar {
  position: fixed;
  top: 40px; /* Height of top bar */
  left: 0;
  width: 100%;
  height: var(--navbar-height, 90px);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(107, 72, 255, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: var(--spacing-sm) var(--spacing-md);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Brand */
.navbar-brand {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  animation: hologramShift 6s infinite ease-in-out;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
}

.brand-e-img {
  height: 42px;
  width: auto;
  margin-right: 0.25rem;
  animation: floatE 3s ease-in-out infinite;
}

@keyframes floatE {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.brand-du {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 600;
  color: var(--dark);
}

/* Show full brand on desktop */
@media (min-width: 768px) {
  .brand-e-img {
    display: inline;
  }
  .brand-du {
    display: inline;
  }
}

/* Simplified logo on mobile */
@media (max-width: 767.98px) {
  .brand-e-img {
    display: inline;
  }
  .brand-du {
    display: none;
  }
}

/* Toggler */
.navbar-toggler {
  border: none;
  padding: var(--spacing-sm);
  z-index: 1100;
  transition: all 0.3s ease;
}

.navbar-toggler-icon {
  width: 34px;
  height: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
}

.toggler-line {
  width: 100%;
  height: 3.5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: all 0.4s ease;
}

.navbar-toggler[aria-expanded="true"] .toggler-line {
  animation: pulseGlow 1.5s infinite;
}

.navbar-toggler[aria-expanded="true"] .line-1 {
  transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler[aria-expanded="true"] .line-2 {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .line-3 {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navbar Nav */
.navbar-nav {
  gap: var(--spacing-sm);
  padding: var(--spacing-md) 0;
  align-items: center;
  justify-content: center;
}

/* Nav Item */
.nav-item {
  position: relative;
  position: sticky;
  top: 0;
}

/* Nav Link */
.nav-link {
  font-size: clamp(0.9rem, 2vw, 0.95rem);
  font-weight: 600;
  font-family: var(--font-heading, 'Inter'), 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  color: var(--text);
  padding: var(--spacing-sm) var(--spacing-md);
  transition: transform 0.2s ease, color 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  transform: translateY(-2px) scale(1.05);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Navbar Action Buttons */
.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: clamp(0.9rem, 1.9vw, 1rem);
  font-weight: 500;
  font-family: var(--font-heading, 'Inter'), 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

/* Hover and Focus Effects */
.nav-action:hover {
  transform: translateY(-1px);
}

.nav-action:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Secondary Action (Post Job) */
.nav-action-secondary {
  background: transparent;
  position: relative;
}

/* Underline Effect for Secondary Action */
.nav-action-secondary::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-action-secondary:hover::after {
  width: 80%;
}

/* Hologram Effect for Both Actions */
.nav-action::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(107, 72, 255, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-action:hover::before {
  opacity: 0.3;
}

/* Particle Effect for All Actions */
.nav-action .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 1;
  animation: particleFade 1.2s ease-out forwards;
}

.nav-action .particle:nth-child(2) { animation-delay: 0.2s; }
.nav-action .particle:nth-child(3) { animation-delay: 0.4s; }

@keyframes particleFade {
  0% { transform: translate(0, 0); opacity: 0.8; }
  100% { transform: translate(15px, -15px); opacity: 0; }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .top-bar {
    display: none;
  }
  
  .navbar {
    top: 0;
  }
  
  .navbar-nav {
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(107, 72, 255, 0.15), rgba(0, 221, 235, 0.15));
    border-radius: 10px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(107, 72, 255, 0.2);
  }

  .nav-action {
    display: block;
    margin: var(--spacing-xs) 0;
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .nav-action-primary,
  .nav-action-secondary {
    width: 100%;
    border-radius: 8px;
  }

  .nav-action-secondary::after {
    bottom: 2px;
  }

  .nav-link {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  /* Disable body scroll when hamburger menu is open */
  body.navbar-open {
    overflow: hidden;
  }
}

/* Adjust content to account for fixed header */
.hero-section {
  margin-top: calc(var(--navbar-height, 90px) + 40px); /* Navbar + top bar height */
}

@media (max-width: 991.98px) {
  .hero-section {
    margin-top: var(--navbar-height, 90px);
  }
}

/* Footer */
.footer {
  background: linear-gradient(180deg, rgba(10, 25, 47, 0.95), rgba(30, 60, 114, 0.85));
  color: var(--white);
  position: relative;
  overflow: hidden;
  border-top: 2px solid;
  border-image: linear-gradient(135deg, var(--primary), var(--accent)) 1;
}

.footer-content {
  display: grid;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
}

.footer-section h4 {
  position: relative;
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-lg);
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 20px;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

.footer-section:hover h4::after {
  width: 30px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-tagline {
  font-size: var(--font-size-sm);
  opacity: 0.8;
  margin: var(--spacing-sm) 0;
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: var(--white);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-links-explore a {
  position: relative;
  transition: all 0.3s ease;
}

.footer-links-explore a:hover,
.footer-links-explore a.active {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-links-explore a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50%;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.footer-links-get-started a.active {
  color: var(--primary);
  font-weight: 600;
}

.footer-links a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.footer-contact i {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding: var(--spacing-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
  color: var(--white);
}

.footer-bottom a:hover {
  color: var(--primary);
}

.footer-bottom a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer-hologram {
  position: relative;
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(255, 0, 255, 0.1));
  animation: hologram 3s infinite;
}

.footer-overlay {
  position: relative;
  width: 100%;
  height: auto;
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.1), transparent);
  z-index: 0;
}

.footer-links-get-started a,
.footer-contact a {
  position: relative;
  transition: all 0.3s ease;
}

.footer-links-get-started a:hover,
.footer-contact a:hover,
.footer-links-explore a:hover,
.footer-links-explore a.active {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-links-get-started a.active,
.footer-contact a.active {
  color: var(--primary);
  font-weight: 600;
}

.footer-links-get-started a.active::after,
.footer-contact a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50%;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* Disable clicks on non-linking items */
.footer-contact p:not(:has(a)) {
  pointer-events: none;
  cursor: default;
}

/* Utility Classes */
.scale-up { transition: var(--transition); }
.scale-up:hover { transform: scale(1.03); }
.hover-shadow { transition: var(--transition); }
.hover-shadow:hover { box-shadow: var(--shadow-md); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.bg-primary { background: var(--primary); }
.bg-neutral { background: var(--neutral); }
.nav-link i, .header .btn i { transition: var(--transition); }

/* Particle Effect for CTA Button */
.nav-cta {
  position: relative;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}