/* 
 * /public/css/header-enhancements.css
 * Enhanced styling for the header component with improved spacing and highlight effects
 */

/* Enhanced Header Styling */
header {
  background: linear-gradient(180deg, rgba(17, 18, 21, 0.98), rgba(17, 18, 21, 0.95)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.3s ease-in-out;
}

header nav .container {
  padding: 0 2.5rem;
  height: 85px;
}

/* Enhanced Navigation Styling */
#nav-menu {
  display: flex;
  align-items: center;
  gap: 2.75rem; /* Increased spacing between navigation items */
}

#nav-menu a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  letter-spacing: 0.03em;
  padding-bottom: 6px;
  text-align: center; /* Center the text */
}

#nav-menu a:hover {
  color: var(--primary);
  transform: translateY(-3px);
  text-shadow: 0 0 12px rgba(235, 165, 0, 0.3);
}

/* Active link state */
#nav-menu a.active {
  color: var(--primary);
  font-weight: 600;
  text-shadow: 0 0 12px rgba(235, 165, 0, 0.3);
}

#nav-menu a.active::after {
  width: 100%;
  opacity: 1;
  height: 3px;
  box-shadow: 0 0 10px rgba(235, 165, 0, 0.5);
  left: 0; /* Ensure it's aligned correctly */
  transform: translateX(0); /* Reset any transforms */
}

/* Enhanced underline effect */
#nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%; /* Start from the center */
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, transform 0.3s ease;
  border-radius: 3px;
  opacity: 0;
  transform: translateX(-50%); /* Center the element */
}

#nav-menu a:hover::after {
  width: 100%;
  opacity: 1;
  box-shadow: 0 0 10px rgba(235, 165, 0, 0.5);
}

/* Enhanced CTA Button */
#nav-menu .cta-button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #000 !important; /* Force black text color */
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(235, 165, 0, 0.3);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  margin-left: 1rem; /* Add spacing before the CTA button */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: auto; /* Remove fixed height */
  position: relative;
  top: -1px; /* Adjust vertical position to align with other menu items */
}

/* Remove underline effect for CTA button */
#nav-menu .cta-button::after {
  display: none;
}

#nav-menu .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(235, 165, 0, 0.5);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #000 !important; /* Force black text on hover */
}

/* Active state for CTA button */
#nav-menu .cta-button.active {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: 0 6px 18px rgba(235, 165, 0, 0.4);
  transform: translateY(-2px);
  color: #000 !important; /* Force black text when active */
}

/* Enhanced Logo Container */
.logo-container {
  transition: all 0.3s ease;
}

.logo-container:hover {
  transform: translateY(-2px);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.logo-container:hover .logo-text {
  text-shadow: 0 0 10px rgba(235, 165, 0, 0.3);
}

/* Mobile Menu Button Enhancement */
#mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

#mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

/* Scrolled Header Effect */
header.scrolled {
  background: rgba(17, 18, 21, 0.98) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  #nav-menu {
    gap: 2rem;
  }
  
  #nav-menu .cta-button {
    padding: 0.5rem 1.4rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  header nav .container {
    padding: 0 1.5rem;
    height: 75px;
  }
  
  #nav-menu {
    display: none;
  }
  
  #mobile-menu-btn {
    display: flex;
  }
} 