/* ===== Modern Header - Enhanced Version ===== */
header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.98) 0%,
    rgba(9, 14, 28, 0.98) 100%
  );
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-xl);
  gap: var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* Brand Logo - Enhanced */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}


.brand img {
  height: 52px;
  width: 52px;
  border-radius: var(--radius-lg);
  padding: 10px;

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



.brand b {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: linear-gradient(135deg, 
    rgba(20, 184, 166, 0.2) 0%,
    rgba(20, 184, 166, 0.1) 100%
  );
  color: #5eead4;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(94, 234, 212, 0.3);
  margin-left: var(--space-sm);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}


/* Mobile Menu Toggle - Enhanced */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 12px;
  z-index: 100;
  position: relative;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--primary);
}

.menu-toggle.active span {
  background: var(--primary);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation Links - Enhanced */
.navlinks {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navlinks a {
  position: relative;
  padding: 12px 20px;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.navlinks a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navlinks a:not(.cta)::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navlinks a:not(.cta):hover::before {
  opacity: 1;
}

.navlinks a:not(.cta):hover::after {
  transform: translateX(-50%) scaleX(1);
}

.navlinks a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.navlinks a.cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 14px 28px;
  font-weight: 600;
  box-shadow: 
    0 8px 32px rgba(59, 130, 246, 0.4),
    0 2px 8px rgba(255, 255, 255, 0.1) inset;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.navlinks a.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.navlinks a.cta:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 40px rgba(59, 130, 246, 0.5),
    0 2px 8px rgba(255, 255, 255, 0.15) inset;
}

.navlinks a.cta:hover::before {
  left: 100%;
}

/* Active State */
.navlinks a.active {
  color: var(--primary);
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15),
    rgba(59, 130, 246, 0.05)
  );
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* WhatsApp Button - Enhanced */
.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  color: white !important;
  border: 2px solid rgba(37, 211, 102, 0.4) !important;
  font-weight: 600 !important;
  box-shadow: 
    0 8px 32px rgba(37, 211, 102, 0.4),
    0 2px 8px rgba(255, 255, 255, 0.1) inset !important;
  position: relative;
  overflow: hidden;
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #128c7e, #25d366) !important;
  transform: translateY(-3px) !important;
  border-color: rgba(37, 211, 102, 0.6) !important;
  box-shadow: 
    0 12px 40px rgba(37, 211, 102, 0.5),
    0 2px 8px rgba(255, 255, 255, 0.15) inset !important;
}

.whatsapp-btn:hover::before {
  left: 100%;
}

.whatsapp-btn::after {
  display: none !important;
}

/* Mobile Menu Overlay - Enhanced */
@media (max-width: 768px) {
  .nav {
    padding: var(--space-sm) var(--space-lg);
  }
  
  .menu-toggle {
    display: flex;
  }

  .navlinks {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.98) 0%,
      rgba(9, 14, 28, 0.98) 100%
    );
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px var(--space-xl) var(--space-xl);
    gap: var(--space-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
      -4px 0 40px rgba(0, 0, 0, 0.4),
      1px 0 0 rgba(255, 255, 255, 0.05) inset;
    z-index: 99;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navlinks.active {
    right: 0;
  }

  .navlinks a {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navlinks a.cta,
  .whatsapp-btn {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-md);
    background: linear-gradient(135deg, var(--primary), var(--accent));
  }

  /* Overlay when menu is open */
  .navlinks.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: -1;
    animation: fadeIn 0.3s ease;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}