/**
 * Interactive Navbar Styles for Papye Lakay
 * Inspired by Dribbble design: https://dribbble.com/shots/24920157-Navbar-Interaction
 */

/* Updated header container */
.app-header .main-header.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  background-color: #ffffff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.app-header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  position: relative;
}

/* Logo styling */
.app-header .logo {
  flex: 0 0 auto;
  z-index: 10;
}

.app-header .logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.app-header .logo img {
  display: block;
  height: 150px;
  width: 150px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Modern navigation with hover interactions */
.app-header .main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.app-header .main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.5rem;
  position: relative;
}

/* Animated background indicator */
.app-header .main-nav ul::before {
  content: '';
  position: absolute;
  height: 40px;
  background-color: rgba(195, 37, 37, 0.08);
  border-radius: 20px;
  z-index: 0;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-header .main-nav ul:hover::before {
  opacity: 1;
}

.app-header .main-nav li {
  position: relative;
  z-index: 2;
}

.app-header .main-nav a {
  font-family: 'Montserrat', sans-serif;
  color: #444;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.75rem 1.2rem;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 20px;
}

/* Hover and active states */
.app-header .main-nav a:hover {
  color: #c32525;
}

.app-header .main-nav a.active {
  color: #c32525;
}

/* Remove default underline animation */
.app-header .main-nav a::after {
  display: none;
}

/* Enhanced mobile menu toggle */
.app-header .menu-toggle {
  background: none;
  border: none;
  display: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
  z-index: 101;
  width: 50px;
  height: 50px;
}

.app-header .menu-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.app-header .menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px auto;
  border-radius: 1px;
  background-color: #333;
  transition: all 0.3s ease;
}

/* JavaScript will handle the background indicator movement */
.nav-indicator-bg {
  display: none; /* Hidden initially, will be shown and positioned via JS */
  position: absolute;
  background-color: rgba(195, 37, 37, 0.08);
  border-radius: 20px;
  height: 40px;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Enhanced hover effects */
.app-header .main-nav a:hover {
  transform: translateY(-2px);
}

.app-header .main-nav a.active {
  transform: translateY(-2px);
}

/* Enhanced styling for sticky header */
.app-header.sticky .main-header.container {
  border-radius: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.app-header.sticky {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

/* Advanced responsive adjustments */
@media (max-width: 992px) {
  .app-header .main-nav ul {
    gap: 1.5rem;
  }
  
  .app-header .main-nav a {
    font-size: 0.95rem;
    padding: 0.75rem 0.8rem;
  }
}

@media (max-width: 768px) {
  .app-header .main-header.container {
    padding: 0 1rem;
    border-radius: 0;
  }
  
  .app-header .header-content {
    padding: 0.75rem 0;
  }
  
  .app-header .menu-toggle {
    display: block;
  }
  
  .app-header .main-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    padding: 5rem 2rem 2rem;
    z-index: 100;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .app-header .main-nav.open {
    right: 0;
  }
  
  .app-header .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .app-header .main-nav ul::before {
    display: none;
  }
  
  .app-header .main-nav li {
    width: 100%;
  }
  
  .app-header .main-nav a {
    display: block;
    padding: 1rem 1.5rem;
    width: 100%;
    border-radius: 8px;
    transition: background-color 0.2s ease;
  }
  
  .app-header .main-nav a:hover,
  .app-header .main-nav a.active {
    background-color: rgba(195, 37, 37, 0.08);
    transform: none;
  }
}
