
.menu-container {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 2000;
  animation: slideInRight 1s ease forwards;  
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); } 
}

.menu-trigger {
  width: 50px;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: rgba(0,0,0,0.01);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-trigger:hover {
  border-color: var(--ink);
  background-color: var(--muted);
}

.hamburger {
  width: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.menu-container.active .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-container.active .hamburger span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.menu-container.active .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
  .menu-trigger { width: 40px; height: 40px; border-radius: 10px; }
}

/* --- BOTTOM BAR CONTAINER --- */
.menu-bottom-bar {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem; 
}

/* --- ICONS ROW --- */
.menu-icons-row {
  display: flex;
  gap: 1.9rem;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem; 
}

.menu-icons-row i {
  color: var(--ink);
  transition: opacity 0.2s, color 0.2s;
  cursor: pointer;
}

.menu-icons-row i:hover {
  opacity: 0.6;
}

a.menu-email-link {
  /* 1. Force styling to override generic menu links */
  font-size: 13px !important; 
  font-weight: 400 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  
  /* 2. Visuals */
  color: var(--text-3, #888);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  
  /* 3. Layout */
  display: inline-block; /* Crucial for animation */
  margin-top: 7px;
  padding-bottom: 3px;
  position: relative;
  transition: color 0.3s ease;
}

/* Hover Color */
a.menu-email-link:hover {
  color: var(--text-primary, #fff);
}

/* The Line Animation */
a.menu-email-link::after {
  content: '';
  position: absolute;
  width: 0;           
  height: 1px;        
  bottom: 0;       
  left: 50%;          
  background-color: var(--ink); 
  transition: width 0.3s ease, left 0.3s ease;
}

a.menu-email-link:hover::after {
  width: 100%;        
  left: 0;            
}